Skip to content

Commit 8af57a7

Browse files
author
Avaer Kazmer
committed
Bugfix data url iframe src generation not being origin-clean
1 parent 5a0c1bf commit 8af57a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WindowVm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class WorkerVm extends EventTarget {
4141
.then(followUrl => new Promise((accept, reject) => {
4242
const src = window.location.origin +
4343
(options.args.options.url.startsWith('data:') ?
44-
`${window.location.origin}/xr-engine-${Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 5)}.html`
44+
`/xr-engine-${Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 5)}.html`
4545
:
4646
options.args.options.url.replace(/^[a-z]+:\/\/[a-zA-Z0-9\-\.]+(?::[0-9]+)?/, ''));
4747
const dst = `\

0 commit comments

Comments
 (0)