1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00
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; return;
} }
callback(tab); callback(tab);
} };
if ( tabId !== null ) { if ( tabId !== null ) {
chrome.tabs.get(tabId, onTabReady); chrome.tabs.get(tabId, onTabReady);
return; return;

View File

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

View File

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

View File

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

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