Skip to content

Commit 8f94f34

Browse files
author
Avaer Kazmer
committed
Bugfix WindowVm url mangling hashes
1 parent 3d751ff commit 8f94f34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WindowVm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ class WorkerVm extends EventTarget {
4040
_getFollowUrl(options.args.options.url)
4141
.then(followUrl => new Promise((accept, reject) => {
4242
const src = window.location.origin +
43-
!options.args.options.url.startsWith('data:') ?
43+
(options.args.options.url.startsWith('data:') ?
4444
`${window.location.origin}/xr-engine-${Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 5)}.html`
4545
:
46-
options.args.options.url.replace(/^[a-z]+:\/\/[a-zA-Z0-9\-\.]+(?::[0-9]+)?/, '');
46+
options.args.options.url.replace(/^[a-z]+:\/\/[a-zA-Z0-9\-\.]+(?::[0-9]+)?/, ''));
4747
const dst = `\
4848
<!doctype html>
4949
<html>

0 commit comments

Comments
 (0)