From e763fc268f7ab878d490db8c7f4b8d2a80938b86 Mon Sep 17 00:00:00 2001 From: maxkadushkin Date: Thu, 16 Dec 2021 19:34:39 +0300 Subject: [PATCH] [all] for bug 29734 --- apps/api/documents/api.js | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js index c419887b8..19f32f884 100644 --- a/apps/api/documents/api.js +++ b/apps/api/documents/api.js @@ -371,36 +371,6 @@ } }; - // var _callLocalStorage = function(data) { - // if (data.cmd == 'get') { - // if (data.keys && data.keys.length) { - // var af = data.keys.split(','), re = af[0]; - // for (i = 0; ++i < af.length;) - // re += '|' + af[i]; - // - // re = new RegExp(re); k = {}; - // for (i in localStorage) - // if (re.test(i)) k[i] = localStorage[i]; - // } else { - // k = localStorage; - // } - // - // _sendCommand({ - // command: 'internalCommand', - // data: { - // type: 'localstorage', - // keys: k - // } - // }); - // } else - // if (data.cmd == 'set') { - // var k = data.keys, i; - // for (i in k) { - // localStorage.setItem(i, k[i]); - // } - // } - // }; - var _onMessage = function(msg) { if ( msg ) { if ( msg.type === "onExternalPluginMessage" ) { @@ -415,8 +385,6 @@ if (msg.event === 'onRequestEditRights' && !handler) { _applyEditRights(false, 'handler isn\'t defined'); - // } else if (msg.event === 'onInternalMessage' && msg.data && msg.data.type == 'localstorage') { - // _callLocalStorage(msg.data.data); } else { if (msg.event === 'onAppReady') { _onAppReady();