Parcourir la source

moved variable declaration

Gildas il y a 7 ans
Parent
commit
1e2a5c6433
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  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: {