This commit is contained in:
Raymond Hill 2014-11-24 12:48:33 -02:00
parent 1ba3142fdf
commit 369b038f92
5 changed files with 9 additions and 6 deletions

View File

@ -75,7 +75,7 @@ vAPI.tabs.get = function(tabId, callback) {
return;
}
callback(tab);
}
};
if ( tabId !== null ) {
chrome.tabs.get(tabId, onTabReady);
return;

View File

@ -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'
);
};

View File

@ -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:

View File

@ -20,12 +20,13 @@
*/
/* global vAPI, uDom */
'use strict';
/******************************************************************************/
(function() {
'use strict';
/******************************************************************************/
var stats;

0
tools/import-crowdin.sh Normal file → Executable file
View File