mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 06:51:23 +08:00
[desktop] fix rtl option from native app
This commit is contained in:
committed by
Oleg Korshul
parent
5966dda10d
commit
a8d8a78680
@ -1200,7 +1200,9 @@ Common.Utils.getKeyByValue = function(obj, value) {
|
||||
!Common.UI && (Common.UI = {});
|
||||
Common.UI.isRTL = function () {
|
||||
if ( window.isrtl === undefined ) {
|
||||
window.isrtl = !Common.Utils.isIE && Common.localStorage.getBool("ui-rtl", Common.Locale.isCurrentLanguageRtl());
|
||||
if ( window.nativeprocvars || window.nativeprocvars.rtl !== undefined )
|
||||
window.isrtl = !Common.Utils.isIE && Common.localStorage.getBool("ui-rtl", Common.Locale.isCurrentLanguageRtl());
|
||||
else window.isrtl = window.nativeprocvars.rtl;
|
||||
}
|
||||
|
||||
return window.isrtl;
|
||||
|
||||
Reference in New Issue
Block a user