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

View File

@@ -104,12 +104,11 @@ var updateAllColorsOnAllTabs = async () => {
if (tabs[i].status === 'complete') {
let t = await getTabParent(tstTabs, tabs[i].id);
let options = await loadOptions();
loadOptions().then((options) => {
browser.tabs.executeScript(tabs[i].id, {
code: '(' + changeIcon.toString() + ')' +
'("' + generateRandomColor(t.parentIndex) + '", "' + t.faviconUrl + '", ' + JSON.stringify(options) + ')'
});
browser.tabs.executeScript(tabs[i].id, {
code: '(' + changeIcon.toString() + ')' +
'("' + generateRandomColor(t.parentIndex) + '", "' + t.faviconUrl + '", ' + JSON.stringify(options) + ')'
});
}