mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-29 03:21:09 +12:00
jshint
This commit is contained in:
parent
e260b19702
commit
5bc14936d5
|
@ -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'
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue