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

kenchris commented on this pull request.



> +        }, 1000);
+      });
+      cancel.addEventListener("click", () => resolve("dismissed"));
+    });
+    cancel.onclick = add.onclick = function() {
+      document.body.removeChild(prompt);
+      installProcesses.splice(installProcesses.findIndex(item => item === p), 1);
+      if (button) {
+        button.disabled = false;
+      }
+    };
+    installProcesses.push(p);
+    return p;
+  }
+
+  if(!window.BeforeInstallPromptEvent) {

I prefer space after if, as it is not really a function

-- 
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-5429475

Received on Monday, 24 October 2016 11:29:56 UTC