Website: If Chrome inline install fails, navigate to store.
This commit is contained in:
parent
e19b27ce65
commit
fe0b5a9537
@ -37,7 +37,9 @@ function imagePreview() {
|
|||||||
}
|
}
|
||||||
function storeInstall(e) {
|
function storeInstall(e) {
|
||||||
if (!e.shiftKey && !e.altKey && !e.ctrlKey && !e.metaKey && e.button === 0) {
|
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();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user