1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-29 03:21:09 +12:00
This commit is contained in:
Raymond Hill 2014-11-24 12:48:33 -02:00 committed by gorhill
parent e260b19702
commit 5bc14936d5

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