From eebf4277980f4d321e0b5cf64af8d026134d3702 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Thu, 18 Aug 2022 18:20:17 +0300 Subject: [PATCH] [mobile] fix "rtl" option getting --- apps/common/mobile/utils/htmlutils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/mobile/utils/htmlutils.js b/apps/common/mobile/utils/htmlutils.js index 1ecf09e466..6f04e00415 100644 --- a/apps/common/mobile/utils/htmlutils.js +++ b/apps/common/mobile/utils/htmlutils.js @@ -8,7 +8,7 @@ const load_stylesheet = reflink => { document.getElementsByTagName("head")[0].appendChild(link); }; -if ( !localStorage && localStorage.getItem('mode-direction') === 'rtl' ) { +if ( localStorage && localStorage.getItem('mobile-mode-direction') === 'rtl' ) { load_stylesheet('./css/framework7-rtl.css') document.body.classList.add('rtl'); } else {