14 lines
295 B
HTML
14 lines
295 B
HTML
<script>
|
|
function getStorageEstimateIs2Gb() {
|
|
return new Promise(resolve => {
|
|
try {
|
|
navigator.storage.estimate().then(function(estimate) {
|
|
resolve(estimate.quota == 2147483648);
|
|
});
|
|
} catch (err) {
|
|
resolve(false);
|
|
}
|
|
})
|
|
}
|
|
</script>
|