From 72ef56710df38229e290f7b2ee1446b4f72baafd Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Tue, 26 Apr 2022 13:01:12 +0400 Subject: [PATCH] [DE mobile] Correct local storage --- .../mobile/src/controller/settings/ApplicationSettings.jsx | 2 +- apps/documenteditor/mobile/src/store/applicationSettings.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/mobile/src/controller/settings/ApplicationSettings.jsx b/apps/documenteditor/mobile/src/controller/settings/ApplicationSettings.jsx index 3b28205a1..a57ec57e1 100644 --- a/apps/documenteditor/mobile/src/controller/settings/ApplicationSettings.jsx +++ b/apps/documenteditor/mobile/src/controller/settings/ApplicationSettings.jsx @@ -64,7 +64,7 @@ class ApplicationSettingsController extends Component { } changeDirection(value) { - localStorage.setItem('mode-direction', value); + LocalStorage.setItem('mode-direction', value); } render() { diff --git a/apps/documenteditor/mobile/src/store/applicationSettings.js b/apps/documenteditor/mobile/src/store/applicationSettings.js index d1c74e2fc..fb93e9a27 100644 --- a/apps/documenteditor/mobile/src/store/applicationSettings.js +++ b/apps/documenteditor/mobile/src/store/applicationSettings.js @@ -30,7 +30,7 @@ export class storeApplicationSettings { isComments = false; isResolvedComments = false; macrosMode = 0; - directionMode = localStorage.getItem('mode-direction') || 'ltr'; + directionMode = LocalStorage.getItem('mode-direction') || 'ltr'; changeDirectionMode(value) { this.directionMode = value;