瀏覽代碼

moved variable declaration

Gildas 7 年之前
父節點
當前提交
1e2a5c6433
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      lib/browser-polyfill/chrome-browser-polyfill.js

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

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