mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(listeners) rm appStorage
This commit is contained in:
parent
094682be87
commit
ea53b519b9
1 changed files with 0 additions and 17 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue