|
|
|
@ -9,12 +9,10 @@ const profile = { |
|
|
|
|
|
|
|
|
|
export class StoragePlugin extends Plugin { |
|
|
|
|
constructor() { |
|
|
|
|
console.log('storage plugin') |
|
|
|
|
super(profile); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async getStorage() { |
|
|
|
|
console.log('getStorage') |
|
|
|
|
if ('storage' in navigator && 'estimate' in navigator.storage) { |
|
|
|
|
return navigator.storage.estimate() |
|
|
|
|
} else { |
|
|
|
|