Gildas 7 лет назад
Родитель
Сommit
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 = {};
 	const FEATURE_TESTS = {};
 
 
-	if (isChrome && !this.browser) {
+	if (isChrome && !this.browser && this.chrome) {
 		const nativeAPI = this.chrome;
 		const nativeAPI = this.chrome;
 		this.__defineGetter__("browser", () => ({
 		this.__defineGetter__("browser", () => ({
 			browserAction: {
 			browserAction: {