Skip to content
This repository was archived by the owner on Apr 3, 2020. It is now read-only.

Commit f6cb79b

Browse files
committed
Update demo server flow for extension installation
1 parent db1d308 commit f6cb79b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

netcode.io.demoserver/index.htm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,16 @@
8686
if (!chrome.app.isInstalled) {
8787
var ext_install = $("#ext_install");
8888
ext_install.click(function (e) {
89+
e.preventDefault();
8990
chrome.webstore.install(
9091
"https://chrome.google.com/webstore/detail/hpecmifakhimhidjpcpjmihpacijicbd",
9192
function () {
9293
// Reload after install.
9394
location.reload();
9495
},
95-
function () {
96-
e.preventDefault();
96+
function (e) {
97+
console.error(e);
98+
location.href = "https://chrome.google.com/webstore/detail/hpecmifakhimhidjpcpjmihpacijicbd";
9799
});
98100
});
99101
}

0 commit comments

Comments
 (0)