From e93a79923d5f18c4d740fd1dfd467b679b7a65c4 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 14 Oct 2014 19:20:01 -0700 Subject: [PATCH] Cancellation is also failure; don't redirect. --- template.jst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/template.jst b/template.jst index 95849abd8..970758de8 100644 --- a/template.jst +++ b/template.jst @@ -14,9 +14,7 @@ body { var link = document.querySelector('a[href="https://chrome.google.com/webstore/detail/4chan-x/ohnjgmpcibpbafdlkimncjhflgedgpam"]'); link.addEventListener('click', function(e) { if (window.chrome && !e.shiftKey && !e.altKey && !e.ctrlKey && !e.metaKey && e.button === 0) { - chrome.webstore.install(undefined, undefined, function(){ - location.href = link.href; - }); + chrome.webstore.install(); e.preventDefault(); } }, false);