- From: Marcos Cáceres <notifications@github.com>
- Date: Tue, 18 Oct 2016 23:50:16 -0700
- To: w3c/manifest <manifest@noreply.github.com>
Received on Wednesday, 19 October 2016 06:50:51 UTC
@mgiuca, @dominickng, do you have an opinion on the following situation:
```JS
window.addeventlistener("beforeinstallprompt", (ev) => {
// Calling without .preventDefault throws.
// But is it still possible to call .prompt() after?
try {
ev.prompt();
}catch(err){}
ev.preventDefault();
ev.prompt(); // Should this succeed?
// this will now fail
ev.prompt();
});
```
That is, should we prevent calling .prompt() twice only after 1 successful call?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/issues/417#issuecomment-254726542
Received on Wednesday, 19 October 2016 06:50:51 UTC