mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 14:04:11 +01:00
Some smaller hint mode tweaks and fixes.
This commit is contained in:
@@ -816,7 +816,7 @@ Class.prototype = {
|
||||
*/
|
||||
timeout: function (callback, timeout) {
|
||||
const self = this;
|
||||
let notify = { notify: function notify(timer) { callback.apply(self) } };
|
||||
let notify = { notify: function notify(timer) { try { callback.apply(self) } catch (e) { util.reportError(e) } } };
|
||||
let timer = services.create("timer");
|
||||
timer.initWithCallback(notify, timeout || 0, timer.TYPE_ONE_SHOT);
|
||||
return timer;
|
||||
|
||||
Reference in New Issue
Block a user