diff --git a/meta/crx/vapi-background.js b/meta/crx/vapi-background.js index 84587d6f7..ce88e4964 100644 --- a/meta/crx/vapi-background.js +++ b/meta/crx/vapi-background.js @@ -75,7 +75,7 @@ vAPI.tabs.get = function(tabId, callback) { return; } callback(tab); - } + }; if ( tabId !== null ) { chrome.tabs.get(tabId, onTabReady); return; diff --git a/meta/crx/vapi-common.js b/meta/crx/vapi-common.js index 17879b1c0..cce22b22a 100644 --- a/meta/crx/vapi-common.js +++ b/meta/crx/vapi-common.js @@ -21,6 +21,8 @@ // For background page or non-background pages +/* global self, vAPI */ + /******************************************************************************/ (function() { @@ -36,7 +38,7 @@ self.vAPI = self.vAPI || {}; var setScriptDirection = function(language) { document.body.setAttribute( 'dir', - ~['ar', 'he', 'fa', 'ps', 'ur'].indexOf(language) ? 'rtl' : 'ltr' + ['ar', 'he', 'fa', 'ps', 'ur'].indexOf(language) !== -1 ? 'rtl' : 'ltr' ); }; diff --git a/src/js/mirrors.js b/src/js/mirrors.js index 9efd17f38..46bc6f617 100644 --- a/src/js/mirrors.js +++ b/src/js/mirrors.js @@ -20,9 +20,7 @@ */ /* jshint bitwise: false */ -/* global µBlock, YaMD5 */ - -'use strict'; +/* global vAPI, µBlock, YaMD5 */ /******************************************************************************/ @@ -30,6 +28,8 @@ µBlock.mirrors = (function() { +'use strict'; + /******************************************************************************/ // To show keys in local storage from console: diff --git a/src/js/popup.js b/src/js/popup.js index bc733df23..4a9b904c5 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -20,12 +20,13 @@ */ /* global vAPI, uDom */ -'use strict'; /******************************************************************************/ (function() { +'use strict'; + /******************************************************************************/ var stats; diff --git a/tools/import-crowdin.sh b/tools/import-crowdin.sh old mode 100644 new mode 100755