need to test more

This commit is contained in:
s2
2017-12-13 11:19:20 +01:00
parent 26e7b44b36
commit 757adc4722

View File

@@ -115,7 +115,7 @@ var updateAllColorsOnAllTabs = async () => {
if (tabHost) { if (tabHost) {
tabHost = tabHost.toLowerCase(); tabHost = tabHost.toLowerCase();
} }
if (!(options.ignore && options.ignore.split('\n').includes(tabHost))) { if (!(options.globals.ignore && options.globals.ignore.split('\n').includes(tabHost))) {
browser.tabs.executeScript(tabs[i].id, { browser.tabs.executeScript(tabs[i].id, {
code: '(' + changeIcon.toString() + ')' + code: '(' + changeIcon.toString() + ')' +
'("' + generateRandomColor(t.parentIndex) + '", "' + t.faviconUrl + '", ' + JSON.stringify(options) + ')' '("' + generateRandomColor(t.parentIndex) + '", "' + t.faviconUrl + '", ' + JSON.stringify(options) + ')'