Re: [w3c/manifest] WIP: beforeinstallprompt (#506)

marcoscaceres commented on this pull request.



> +        throw new DOMException(msg, "InvalidStateError");
+      }
+
+      if (internalSlots.get(this).didPrompt) {
+        const msg = ".prompt() can only be successfully called once.";
+        throw new DOMException(msg, "InvalidStateError");
+      }
+      requestInstallPrompt(this);
+    }
+
+    get userChoice() {
+      return internalSlots.get(this).userChoice;
+    }
+  }
+
+  async function notifyBeforeInstallPrompt(element) {

This is supposed to match "the steps to notify before an automated install" - which is why I named it as such (admittedly, not the best name). I'll add a `@see link` to the code. 

-- 
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/pull/506

Received on Monday, 24 October 2016 12:36:51 UTC