From 36667dece1aee98417824dd82ca8a6fd2b2a055b Mon Sep 17 00:00:00 2001 From: tophf Date: Mon, 24 Apr 2017 16:28:58 +0300 Subject: [PATCH] install.js: fix onclick after orphanCheck --- install.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.js b/install.js index 9927bb8a..770758a4 100644 --- a/install.js +++ b/install.js @@ -75,7 +75,7 @@ function sendEvent(type, detail = null) { function onInstallClicked() { - if (!orphanCheck()) { + if (!orphanCheck || !orphanCheck()) { return; } getResource(getMeta('stylish-description')) @@ -85,7 +85,7 @@ function onInstallClicked() { function onUpdateClicked() { - if (!orphanCheck()) { + if (!orphanCheck || !orphanCheck()) { return; } chrome.runtime.sendMessage({