all actions must always return a Promise

This commit is contained in:
tophf 2017-11-15 07:11:46 +03:00
parent d8ceb35cd5
commit fc5c00e37d

View File

@ -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;
}
}