From ea53b519b90fd59b5ea7889879cc9ed7f1c628a6 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 28 Apr 2015 06:37:08 -0400 Subject: [PATCH] feature(listeners) rm appStorage --- lib/client/listeners.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/lib/client/listeners.js b/lib/client/listeners.js index 424348ab..cef13ce5 100644 --- a/lib/client/listeners.js +++ b/lib/client/listeners.js @@ -20,7 +20,6 @@ var Util, DOM, CloudFunc, CloudCmd; }; this.init = function () { - appStorage(); contextMenu(); dragndrop(); unload(); @@ -234,22 +233,6 @@ var Util, DOM, CloudFunc, CloudCmd; DOM.setCurrentFile(element); } - function appStorage() { - Files.get('config', function(error, config) { - var isAppStorage = config.appStorage, - appStorage = window.applicationStorage; - - if (isAppStorage && appStorage) - Events.add('updateready', appStorage, function() { - var ret = confirm('An update is available. Reload now?'); - - if (ret) - location.reload(); - - }); - }); - } - function contextMenu() { Events.addContextMenu(document, function(event) { CloudCmd.Menu.ENABLED || event.preventDefault();