Parcourir la source

Use locally stored copy of `Window` object in `State`, instead of the global object.

dom111 il y a 2 ans
Parent
commit
95d417dc87
3 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/lib/State.ts
  2. 0 0
      src/webdav-min.js
  3. 0 0
      src/webdav.js.map

+ 1 - 1
src/lib/State.ts

@@ -28,7 +28,7 @@ export class State extends EventEmitter<{
   }
 
   private bindEvents(): void {
-    on(window, 'popstate', () => this.update());
+    on(this.#window, 'popstate', () => this.update());
   }
 
   getCollection(): Collection {

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
src/webdav-min.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
src/webdav.js.map


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff