Merge branch 'indexdbpackupdate' of https://github.com/ethereum/remix-project into indexdbpackupdate

indexdbwithworkspaces
filip mertens 3 years ago
commit 9553a3334e
  1. 11
      apps/remix-ide/src/app/files/dgitProvider.js

@ -572,14 +572,3 @@ const normalize = (filesList) => {
}
module.exports = DGitProvider
/*
if (navigator.storage && navigator.storage.estimate) {
const quota = await navigator.storage.estimate();
// quota.usage -> Number of bytes used.
// quota.quota -> Maximum number of bytes available.
const percentageUsed = (quota.usage / quota.quota) * 100;
console.log(`You've used ${percentageUsed}% of the available storage.`);
const remaining = quota.quota - quota.usage;
console.log(`You can write up to ${(remaining/ 1048576).toFixed(2)} more MB.`);
} */

Loading…
Cancel
Save