From f24dff7c11b88bbe3924ac3551621c06dc275153 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Tue, 14 Dec 2021 22:57:24 +0300 Subject: [PATCH] [common] fix bug 29734 --- apps/common/main/lib/util/LocalStorage.js | 25 ++++++++++++----------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/apps/common/main/lib/util/LocalStorage.js b/apps/common/main/lib/util/LocalStorage.js index 7c55eba5a..ea253b237 100644 --- a/apps/common/main/lib/util/LocalStorage.js +++ b/apps/common/main/lib/util/LocalStorage.js @@ -52,13 +52,13 @@ define(['gateway'], function () { Common.Gateway.on('internalcommand', ongetstore); var _refresh = function() { - if (!_lsAllowed) - Common.Gateway.internalMessage('localstorage', {cmd:'get', keys:_filter}); + // if (!_lsAllowed) + // Common.Gateway.internalMessage('localstorage', {cmd:'get', keys:_filter}); }; var _save = function() { - if (!_lsAllowed) - Common.Gateway.internalMessage('localstorage', {cmd:'set', keys:_store}); + // if (!_lsAllowed) + // Common.Gateway.internalMessage('localstorage', {cmd:'set', keys:_store}); }; var _setItem = function(name, value, just) { @@ -72,14 +72,15 @@ define(['gateway'], function () { } else { _store[name] = value; - if (just===true) { - Common.Gateway.internalMessage('localstorage', { - cmd:'set', - keys: { - name: value - } - }); - } + // if (just===true) { + // TDDO: remove after ver 7.2. using external local storage is depricated + // Common.Gateway.internalMessage('localstorage', { + // cmd:'set', + // keys: { + // name: value + // } + // }); + // } } };