Преглед изворни кода

ensure this.chrome is defined

Gildas пре 7 година
родитељ
комит
6398b7dda9
1 измењених фајлова са 1 додато и 1 уклоњено
  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: {