@steve31415/baselib 4.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -686,6 +686,13 @@ export class SyncClient {
686
686
  }
687
687
  this.hubLastHeardAt = this.now();
688
688
  this.hubAwaitingPong = false;
689
+ // Hidden with a hub socket, the 5-minute tick runs beside it (hints can
690
+ // be lost). A page hidden later started it at the hide; one loaded
691
+ // hidden starts it here, current since its bootstrap.
692
+ if (this.isHidden() && this.backgroundTickTimer === null) {
693
+ this.lastTickAt ??= this.now();
694
+ this.armBackgroundTick();
695
+ }
689
696
  this.sendRaw(this.connectMessage());
690
697
  this.startLiveTimers();
691
698
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steve31415/baselib",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Plasticine new-world shared platform library: logging, auth, service-to-service auth, db, HTTP, sync, app updates",
5
5
  "type": "module",
6
6
  "license": "MIT",