Explorar el Código

ensure this.chrome is defined

Gildas hace 7 años
padre
commit
6398b7dda9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/browser-polyfill/chrome-browser-polyfill.js

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

@@ -26,7 +26,7 @@
 
 	const FEATURE_TESTS = {};
 
-	if (isChrome && !this.browser) {
+	if (isChrome && !this.browser && this.chrome) {
 		const nativeAPI = this.chrome;
 		this.__defineGetter__("browser", () => ({
 			browserAction: {