StorageManager.exists = function(savefileId) {
if (this.isLocalMode()) {
return this.localFileExists(savefileId);
} else {
return this.webStorageExists(savefileId);
}
};
StorageManager.isLocalMode = function() {
return Utils.isNwjs();
};
Utils.isNwjs = function() {
return typeof require === 'function' && typeof process === 'object';
};
StorageManager.exists = function(savefileId) {
if (this.isLocalMode()) {
return this.localFileExists(savefileId);
} else {
return this.webStorageExists(savefileId);
}
};
StorageManager.isLocalMode = function() {
return Utils.isNwjs();
};
Utils.isNwjs = function() {
return typeof require === 'function' && typeof process === 'object';
};