We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dd0682 commit 4b43c83Copy full SHA for 4b43c83
vendor/priors/gwt.js
@@ -545,6 +545,7 @@ var accountStoreCache;
545
var pkiStoreCache;
546
var rootKeyCache;
547
let SAFARI_CACHE_SIZE = 1024 * 1024 * 700;
548
+let MAX_CACHE_SIZE = 1024 * 1024 * 1024 * 5;
549
550
function bindCacheStore(storeCache) {
551
blockStoreCache = storeCache;
@@ -641,7 +642,7 @@ function isSafariTest() {
641
642
}
643
function getBrowserStorageQuota() {
644
if (navigator.storage && navigator.storage.estimate) {
- return navigator.storage.estimate().then(quota => quota.quota);
645
+ return navigator.storage.estimate().then(quota => Math.min(MAX_CACHE_SIZE, quota.quota));
646
} else {
647
648
let prom = new Promise(function(resolve, reject) { resolve(isSafariTest() ? SAFARI_CACHE_SIZE : 0)});
0 commit comments