mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-06-11 09:18:28 +00:00
12 lines
307 B
JavaScript
12 lines
307 B
JavaScript
const Cc = Components.classes;
|
|
const Ci = Components.interfaces;
|
|
|
|
addMessageListener('setTimeout', msg => {
|
|
let timer = Cc['@mozilla.org/timer;1'].createInstance(Ci.nsITimer);
|
|
timer.init(_ => {
|
|
sendAsyncMessage('timeout');
|
|
}, msg.delay, Ci.nsITimer.TYPE_ONE_SHOT);
|
|
});
|
|
|
|
sendAsyncMessage('ready');
|