all actions must always return a Promise
This commit is contained in:
parent
d8ceb35cd5
commit
fc5c00e37d
|
@ -129,6 +129,8 @@ const styleViaAPI = !CHROME && (() => {
|
|||
const tasks = Object.keys(frameStyles)
|
||||
.map(id => removeCSS(tab.id, frameId, frameStyles[id].join('\n')));
|
||||
return Promise.all(tasks);
|
||||
} else {
|
||||
return NOP;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user