Browse Source

Code optimization

main
Cédric Belin 4 weeks ago
parent
commit
c87adc6289
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/webstorage/LocalStorage.hx
  2. +1
    -1
      src/webstorage/SessionStorage.hx

+ 1
- 1
src/webstorage/LocalStorage.hx View File

@@ -7,5 +7,5 @@ import js.Browser;

/** Creates a new local storage service. **/
public function new(?options: WebStorage.WebStorageOptions)
super(Browser.window.localStorage, options);
super(Browser.getLocalStorage(), options);
}

+ 1
- 1
src/webstorage/SessionStorage.hx View File

@@ -7,5 +7,5 @@ import js.Browser;

/** Creates a new session storage service. **/
public function new(?options: WebStorage.WebStorageOptions)
super(Browser.window.sessionStorage, options);
super(Browser.getSessionStorage(), options);
}

Loading…
Cancel
Save