Skip to content

Commit 0bcae68

Browse files
author
Avaer Kazmer
committed
Bugfix code replacement in app.html
1 parent 2f0b961 commit 0bcae68

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

app.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,8 @@
212212
method: 'code',
213213
code: root.outerHTML
214214
.replace(
215-
'<xr-iframe src="examples\/floor.html"',
216-
`<xr-iframe src="${window.location.origin}/examples/floor.html"`
217-
)
218-
.replace(
219-
'<xr-iframe src="examples\/tutorial.html"',
220-
`<xr-iframe src="${window.location.origin}/examples/tutorial.html"`
215+
/(<xr-iframe src=")(examples\/)/g,
216+
`$1${window.location.origin}/$2`
221217
),
222218
});
223219
break;

0 commit comments

Comments
 (0)