Gildas 7 роки тому
батько
коміт
bd7f9125ed
1 змінених файлів з 1 додано та 5 видалено
  1. 1 5
      lib/browser-polyfill/chrome-browser-polyfill.js

+ 1 - 5
lib/browser-polyfill/chrome-browser-polyfill.js

@@ -18,15 +18,11 @@
  *   along with SingleFile.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-/* global navigator */
-
 (() => {
 
-	const isChrome = navigator.userAgent.includes("Chrome");
-
 	const FEATURE_TESTS = {};
 
-	if (isChrome && !this.browser && this.chrome) {
+	if (!this.browser && this.chrome) {
 		const nativeAPI = this.chrome;
 		this.__defineGetter__("browser", () => ({
 			browserAction: {