From fe0b5a953770cda35aa00dd73828bf6f97cecbc4 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 15 Aug 2015 13:33:16 -0700 Subject: [PATCH] Website: If Chrome inline install fails, navigate to store. --- template.jst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/template.jst b/template.jst index c0e726a1d..93797d188 100644 --- a/template.jst +++ b/template.jst @@ -37,7 +37,9 @@ function imagePreview() { } function storeInstall(e) { if (!e.shiftKey && !e.altKey && !e.ctrlKey && !e.metaKey && e.button === 0) { - chrome.webstore.install(); + chrome.webstore.install(this.href, function(){}, function(){ + location.href = this.href; + }); e.preventDefault(); } }