Skip to content

Commit

Permalink
Increase heartbeat interval from 1sec to 5sec #3397
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Oct 30, 2023
1 parent 31f7d2e commit 30a9337
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion webextensions/background/migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function log(...args) {
internalLogger('background/migration', ...args);
}

const kCONFIGS_VERSION = 28;
const kCONFIGS_VERSION = 29;
const kFEATURES_VERSION = 9;

export function migrateConfigs() {
Expand Down Expand Up @@ -268,6 +268,10 @@ export function migrateConfigs() {
case 27:
if (configs.openAllBookmarksWithGroupAlways !== null)
configs.suppressGroupTabForStructuredTabsFromBookmarks = !configs.openAllBookmarksWithGroupAlways;

case 28:
if (configs.heartbeatInterval == 1000)
configs.heartbeatInterval = configs.$default.heartbeatInterval;
}
configs.configsVersion = kCONFIGS_VERSION;
}
Expand Down
2 changes: 1 addition & 1 deletion webextensions/common/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ export const configs = new Configs({
enableWorkaroundForBug1763420_reloadMaskImage: true, // workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=1763420
maximumDelayForBug1561879: 500,
workaroundForBug1548949DroppedTabs: null,
heartbeatInterval: 1000,
heartbeatInterval: 5000,
connectionTimeoutDelay: 500,
maximumAcceptableDelayForTabDuplication: 10 * 1000,
maximumDelayUntilTabIsTracked: 10 * 60 * 1000,
Expand Down

0 comments on commit 30a9337

Please sign in to comment.