mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-02 13:25:47 +01:00
Check branch after a timeout.
This commit is contained in:
@@ -160,6 +160,7 @@ defineModule.time = function time(major, minor, func, self) {
|
|||||||
catch (e) {
|
catch (e) {
|
||||||
loaded.util && util.reportError(e);
|
loaded.util && util.reportError(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
let delta = Date.now() - time;
|
let delta = Date.now() - time;
|
||||||
defineModule.times.all += delta;
|
defineModule.times.all += delta;
|
||||||
defineModule.times[major] = (defineModule.times[major] || 0) + delta;
|
defineModule.times[major] = (defineModule.times[major] || 0) + delta;
|
||||||
|
|||||||
@@ -745,10 +745,12 @@ config.INIT = update(Object.create(config.INIT), config.INIT, {
|
|||||||
load: function load(dactyl, modules, window) {
|
load: function load(dactyl, modules, window) {
|
||||||
load.superapply(this, arguments);
|
load.superapply(this, arguments);
|
||||||
|
|
||||||
if (this.branch && this.branch !== "default" &&
|
this.timeout(function () {
|
||||||
modules.yes_i_know_i_should_not_report_errors_in_these_branches_thanks.indexOf(this.branch) === -1)
|
if (this.branch && this.branch !== "default" &&
|
||||||
dactyl.warn("You are running " + config.appName + " from a testing branch: " + this.branch + ". " +
|
modules.yes_i_know_i_should_not_report_errors_in_these_branches_thanks.indexOf(this.branch) === -1)
|
||||||
"Please do not report errors which do not also occur in the default branch.");
|
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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user