mirror of https://github.com/gorhill/uBlock.git
jshint
This commit is contained in:
parent
1ba3142fdf
commit
369b038f92
|
@ -75,7 +75,7 @@ vAPI.tabs.get = function(tabId, callback) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
callback(tab);
|
callback(tab);
|
||||||
}
|
};
|
||||||
if ( tabId !== null ) {
|
if ( tabId !== null ) {
|
||||||
chrome.tabs.get(tabId, onTabReady);
|
chrome.tabs.get(tabId, onTabReady);
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -21,6 +21,8 @@
|
||||||
|
|
||||||
// For background page or non-background pages
|
// For background page or non-background pages
|
||||||
|
|
||||||
|
/* global self, vAPI */
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
@ -36,7 +38,7 @@ self.vAPI = self.vAPI || {};
|
||||||
var setScriptDirection = function(language) {
|
var setScriptDirection = function(language) {
|
||||||
document.body.setAttribute(
|
document.body.setAttribute(
|
||||||
'dir',
|
'dir',
|
||||||
~['ar', 'he', 'fa', 'ps', 'ur'].indexOf(language) ? 'rtl' : 'ltr'
|
['ar', 'he', 'fa', 'ps', 'ur'].indexOf(language) !== -1 ? 'rtl' : 'ltr'
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -20,9 +20,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* jshint bitwise: false */
|
/* jshint bitwise: false */
|
||||||
/* global µBlock, YaMD5 */
|
/* global vAPI, µBlock, YaMD5 */
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
@ -30,6 +28,8 @@
|
||||||
|
|
||||||
µBlock.mirrors = (function() {
|
µBlock.mirrors = (function() {
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
// To show keys in local storage from console:
|
// To show keys in local storage from console:
|
||||||
|
|
|
@ -20,12 +20,13 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* global vAPI, uDom */
|
/* global vAPI, uDom */
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
var stats;
|
var stats;
|
||||||
|
|
Loading…
Reference in New Issue