diff --git a/common/modules/base.jsm b/common/modules/base.jsm index 87f9ecc4..5dee1a0c 100644 --- a/common/modules/base.jsm +++ b/common/modules/base.jsm @@ -160,6 +160,7 @@ defineModule.time = function time(major, minor, func, self) { catch (e) { loaded.util && util.reportError(e); } + let delta = Date.now() - time; defineModule.times.all += delta; defineModule.times[major] = (defineModule.times[major] || 0) + delta; diff --git a/common/modules/config.jsm b/common/modules/config.jsm index f80cfcdc..d63e188c 100644 --- a/common/modules/config.jsm +++ b/common/modules/config.jsm @@ -745,10 +745,12 @@ config.INIT = update(Object.create(config.INIT), config.INIT, { load: function load(dactyl, modules, window) { load.superapply(this, arguments); - if (this.branch && this.branch !== "default" && - modules.yes_i_know_i_should_not_report_errors_in_these_branches_thanks.indexOf(this.branch) === -1) - dactyl.warn("You are running " + config.appName + " from a testing branch: " + this.branch + ". " + - "Please do not report errors which do not also occur in the default branch."); + this.timeout(function () { + if (this.branch && this.branch !== "default" && + modules.yes_i_know_i_should_not_report_errors_in_these_branches_thanks.indexOf(this.branch) === -1) + dactyl.warn("You are running " + config.appName + " from a testing branch: " + this.branch + ". " + + "Please do not report errors which do not also occur in the default branch."); + }, 1000); } });