diff options
| author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2021-01-17 15:28:54 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-17 16:28:54 +0100 |
| commit | 7db0605d456559f1ca9447e6fa778559fe50cc95 (patch) | |
| tree | 8607446306b6e526dab149a465cac3e3d825b96b /cli/tests/subdir | |
| parent | f4dbb267c6672f92605bc204b10ad9a96d160ef4 (diff) | |
fix(op_crates/web): Use WorkerLocation for location in workers (#9084)
Diffstat (limited to 'cli/tests/subdir')
| -rw-r--r-- | cli/tests/subdir/worker_location.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/tests/subdir/worker_location.ts b/cli/tests/subdir/worker_location.ts index 480032350..89fa83036 100644 --- a/cli/tests/subdir/worker_location.ts +++ b/cli/tests/subdir/worker_location.ts @@ -1,4 +1,6 @@ onmessage = function (): void { - postMessage(self.location.href); + postMessage( + `${location.href}, ${location instanceof WorkerLocation}`, + ); close(); }; |
