instruckt 0.4.23 → 0.4.24

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.
@@ -3176,6 +3176,7 @@ var _Instruckt = class _Instruckt {
3176
3176
  this.pendingMouseTarget = null;
3177
3177
  this.highlightLocked = false;
3178
3178
  this.pollTimer = null;
3179
+ this.initialLoadDone = false;
3179
3180
  this.boundReposition = () => {
3180
3181
  var _a2;
3181
3182
  (_a2 = this.markers) == null ? void 0 : _a2.reposition(this.annotations);
@@ -3364,6 +3365,7 @@ var _Instruckt = class _Instruckt {
3364
3365
  this.saveToStorage();
3365
3366
  } catch (e) {
3366
3367
  }
3368
+ this.initialLoadDone = true;
3367
3369
  this.syncMarkers();
3368
3370
  }
3369
3371
  saveToStorage() {
@@ -3381,6 +3383,7 @@ var _Instruckt = class _Instruckt {
3381
3383
  }
3382
3384
  /** Start or stop polling based on whether there are active annotations */
3383
3385
  updatePolling() {
3386
+ if (!this.initialLoadDone) return;
3384
3387
  const hasActive = this.totalActiveCount() > 0;
3385
3388
  if (hasActive && !this.pollTimer) {
3386
3389
  this.pollTimer = setInterval(() => this.pollForChanges(), 3e3);
@@ -3882,7 +3885,7 @@ No open annotations.`;
3882
3885
  }
3883
3886
  };
3884
3887
  // ── Persistence ─────────────────────────────────────────────────
3885
- _Instruckt.STORAGE_KEY = "instruckt:annotations";
3888
+ _Instruckt.STORAGE_KEY = `instruckt:${window.location.origin}:annotations`;
3886
3889
  var Instruckt = _Instruckt;
3887
3890
 
3888
3891
  // src/index.ts