install.js: fix onclick after orphanCheck

This commit is contained in:
tophf 2017-04-24 16:28:58 +03:00
parent 3628564961
commit 36667dece1

View File

@ -75,7 +75,7 @@ function sendEvent(type, detail = null) {
function onInstallClicked() { function onInstallClicked() {
if (!orphanCheck()) { if (!orphanCheck || !orphanCheck()) {
return; return;
} }
getResource(getMeta('stylish-description')) getResource(getMeta('stylish-description'))
@ -85,7 +85,7 @@ function onInstallClicked() {
function onUpdateClicked() { function onUpdateClicked() {
if (!orphanCheck()) { if (!orphanCheck || !orphanCheck()) {
return; return;
} }
chrome.runtime.sendMessage({ chrome.runtime.sendMessage({