Update dgitProvider.js

indexdbwithworkspaces
bunsenstraat 3 years ago committed by GitHub
parent 0dd1f45143
commit 022d61ecd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      apps/remix-ide/src/app/files/dgitProvider.js

@ -572,14 +572,3 @@ const normalize = (filesList) => {
} }
module.exports = DGitProvider 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