1
0
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:
开始 2023-09-13 15:23:51 +08:00 committed by GitHub
parent 19ce50552f
commit ef082af2a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;
},