- From: Domenic Denicola <notifications@github.com>
- Date: Tue, 18 Aug 2015 21:50:42 -0700
- To: whatwg/storage <storage@noreply.github.com>
Received on Wednesday, 19 August 2015 04:51:12 UTC
I'm a little confused what the issue is here. @inexorabletash, you said
> If a site assumed persistentPermission() => "granted" indicates the storage is persistent it would not bother to call requestPersistent()
Is that actually a bad thing in any way? It seems fine. The idea is that authors could write:
```js
navigator.storage.persistentPermission()
.then(function(permission) {
return permission === 'granted';
})
.then(function(hasPersistent) {
// ...
});
```
and it would be equivalent to
```js
navigator.storage.persistentPermissionOnlyIfNoPrompt()
.then(function(hasPersistent) {
// ...
});
```
---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/storage/issues/9#issuecomment-132444630
Received on Wednesday, 19 August 2015 04:51:12 UTC