Explorar o código

moved variable declaration

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
1e2a5c6433
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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: {