mirror of
https://github.com/ylw00/qxVm.git
synced 2025-04-09 10:23:27 +08:00
Update StorageManager.js
This commit is contained in:
parent
19ce50552f
commit
ef082af2a9
10
qxVm_sanbox/env/EVENTTARGET/StorageManager.js
vendored
10
qxVm_sanbox/env/EVENTTARGET/StorageManager.js
vendored
@ -13,7 +13,15 @@ StorageManager = function StorageManager(createObj_key) {
|
||||
StorageManager.prototype = {
|
||||
estimate() {
|
||||
if (!StorageManager.prototype.isPrototypeOf(this)) { throw new TypeError("Illegal constructor"); };
|
||||
let result = undefined;
|
||||
let result = new Promise((resolve, reject) => {
|
||||
setTimeout(() => {
|
||||
resolve({
|
||||
quota: 193274155008,
|
||||
usage: 0,
|
||||
usageDetails: {},
|
||||
})
|
||||
}, 0)
|
||||
});
|
||||
if (lwVm.config.logOpen=== true) lwVm.logAdd('Func', 'StorageManager', 'estimate', arguments, result);
|
||||
return result;
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user