Skip to content

Commit 98bbf83

Browse files
committed
remove window. prefix (so can run in web workers)
1 parent d643464 commit 98bbf83

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/Window.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
export default class Window {
22
static get location(){
3-
return window.location;
3+
return location;
44
}
55
static get localStorage() {
6-
return window.localStorage;
6+
return localStorage;
77
}
88
static get sessionStorage() {
9-
return window.sessionStorage;
9+
return sessionStorage;
1010
}
1111
static get XMLHttpRequest(){
12-
return window.XMLHttpRequest;
12+
return XMLHttpRequest;
1313
}
1414
};

0 commit comments

Comments
 (0)