fix a copypaste error
This commit is contained in:
parent
4772178689
commit
e84afd9a20
|
@ -297,6 +297,7 @@
|
||||||
|
|
||||||
|
|
||||||
function orphanCheck() {
|
function orphanCheck() {
|
||||||
|
// TODO: switch to install-hook-usercss.js impl, and remove explicit orphanCheck() calls
|
||||||
if (chrome.i18n && chrome.i18n.getUILanguage()) {
|
if (chrome.i18n && chrome.i18n.getUILanguage()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -307,7 +308,7 @@
|
||||||
['', 'Chrome', 'Opera'].forEach(browser =>
|
['', 'Chrome', 'Opera'].forEach(browser =>
|
||||||
document.addEventListener('stylish' + type + browser, onClick)));
|
document.addEventListener('stylish' + type + browser, onClick)));
|
||||||
try {
|
try {
|
||||||
chrome.runtime.onMessage.addListener(onMessage);
|
chrome.runtime.onMessage.removeListener(onMessage);
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user