diff --git a/main.js b/main.js index 626ae758..e8df0028 100644 --- a/main.js +++ b/main.js @@ -1940,6 +1940,10 @@ function onChromeReady() { // Re-emit any pending update notice — harmless if nothing is pending. emitUpdateAvailable(); scheduleStartupUpdateCheck(); + // Add-on update poller, 30 s after the first page is up. Moved here from + // whenReady+30s so it never races tab restore (restoreTabs runs above and + // its network fetches should go unimpeded for the first few seconds). + setTimeout(() => pollAddonUpdates("boot"), 30_000); refreshRemoteHomeCards().catch(() => {}); } function applyThrottle() { @@ -12180,7 +12184,7 @@ if (!process.env.THESEUS_NO_AUTOSTART && !app.requestSingleInstanceLock()) { // check and never showed up), so re-check every 4 h while running, and // tell the chrome whenever something is staged so the user sees a // "restart to apply" chip instead of finding out in Settings. - setTimeout(() => pollAddonUpdates("boot"), 30_000); + // boot-time poll now runs from onChromeReady; interval poll (4 h) is fine here. setInterval(() => pollAddonUpdates("interval"), 4 * 60 * 60 * 1000); // Launched from an installed app's shortcut: just that app's window; the // browser window comes up on the next plain launch (second-instance). diff --git a/package.json b/package.json index 3ee61024..19b1d764 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "theseus-navigator", - "version": "0.3.113", + "version": "0.3.114", "license": "MPL-2.0", "description": "Theseus Navigator — a browser that follows the thread. By Silent Mode, a Deviant project.", "author": "Silent Mode",