Ah sorry, that was just a simple example to try help reproduce, I'm not doing a timer in our actual code.
chrome.runtime.onMessage.addListener(function (
message,
sender,
sendResponse
) {
chrome.storage.local.set({"foo": 1})
.then(() => {
sendResponse('response');
})
return true;
});
has the same issue