Commit 6ef46fd
committed
use
this allows the same code to work in both windowed contexts (ie, the usual browser stuff) and in non-windowed contexts (like web workers). see https://developer.mozilla.org/en-US/docs/Web/API/Window/self
node doesn't have `self` or `window`, so it shouldn't matter either wayself instead of window in JS1 parent ad14217 commit 6ef46fd
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1023 | 1023 | | |
1024 | 1024 | | |
1025 | 1025 | | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
1029 | 1029 | | |
1030 | 1030 | | |
1031 | 1031 | | |
| |||
1063 | 1063 | | |
1064 | 1064 | | |
1065 | 1065 | | |
1066 | | - | |
| 1066 | + | |
1067 | 1067 | | |
1068 | 1068 | | |
1069 | 1069 | | |
| |||
0 commit comments