[common] fix bug 29734

This commit is contained in:
Maxim Kadushkin 2021-12-14 22:57:24 +03:00
parent 100a69251e
commit f24dff7c11

View file

@ -52,13 +52,13 @@ define(['gateway'], function () {
Common.Gateway.on('internalcommand', ongetstore); Common.Gateway.on('internalcommand', ongetstore);
var _refresh = function() { var _refresh = function() {
if (!_lsAllowed) // if (!_lsAllowed)
Common.Gateway.internalMessage('localstorage', {cmd:'get', keys:_filter}); // Common.Gateway.internalMessage('localstorage', {cmd:'get', keys:_filter});
}; };
var _save = function() { var _save = function() {
if (!_lsAllowed) // if (!_lsAllowed)
Common.Gateway.internalMessage('localstorage', {cmd:'set', keys:_store}); // Common.Gateway.internalMessage('localstorage', {cmd:'set', keys:_store});
}; };
var _setItem = function(name, value, just) { var _setItem = function(name, value, just) {
@ -72,14 +72,15 @@ define(['gateway'], function () {
} else { } else {
_store[name] = value; _store[name] = value;
if (just===true) { // if (just===true) {
Common.Gateway.internalMessage('localstorage', { // TDDO: remove after ver 7.2. using external local storage is depricated
cmd:'set', // Common.Gateway.internalMessage('localstorage', {
keys: { // cmd:'set',
name: value // keys: {
} // name: value
}); // }
} // });
// }
} }
}; };