reformat
This commit is contained in:
@@ -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) + ')'
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user