blob: 6635da00943bd328820adddfdf0e8d305f263458 (
plain)
1
2
3
4
5
6
7
8
9
10
|
/**
* This file should be used as a WebWorker.
* Background pages in the WebExtensions model do
* not allow to schedule callbacks that should be called
* after a timeout. We can emulate this with WebWorkers.
*/
onmessage = function(e) {
self.setInterval(() => postMessage(true, "timerThread"), e.data.interval);
};
|