This commit is contained in:
s2
2017-12-12 15:00:45 +01:00
parent ac83798388
commit 56c58896b8

View File

@@ -104,13 +104,12 @@ var updateAllColorsOnAllTabs = async () => {
if (tabs[i].status === 'complete') { if (tabs[i].status === 'complete') {
let t = await getTabParent(tstTabs, tabs[i].id); let t = await getTabParent(tstTabs, tabs[i].id);
let options = await loadOptions();
loadOptions().then((options) => {
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) + ')'
}); });
});
} }
if (tabs[i].children && tabs[i].children.length > 0) { if (tabs[i].children && tabs[i].children.length > 0) {