- From: Kenneth Rohde Christiansen <notifications@github.com>
- Date: Mon, 24 Oct 2016 04:27:16 -0700
- To: w3c/manifest <manifest@noreply.github.com>
Received on Monday, 24 October 2016 11:28:15 UTC
kenchris commented on this pull request.
> +    if (!event.defaultPrevented) {
+      await requestInstallPrompt(event, element);
+    }
+  }
+
+  function trackReadyState() {
+    return new Promise((resolve) => {
+      document.addEventListener("readystatechange", () => {
+        if (document.readyState === "complete") {
+          resolve();
+        }
+      });
+    });
+  }
+
+  async function showInstallPrompt(button) {
the functon calling this called the argument element, why not just call it button there as well
-- 
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#pullrequestreview-5429228
Received on Monday, 24 October 2016 11:28:15 UTC