Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
coyotte508
commited on
Commit
·
202c8cc
1
Parent(s):
4e7d927
correct origin
Browse files
app.ts
CHANGED
@@ -12,7 +12,7 @@ app.use("/", (req, res, next) => {
|
|
12 |
`<script>addEventListener(
|
13 |
'hashchange',
|
14 |
event => {
|
15 |
-
parent.postMessage({data: {hash: new URL(event.newURL).hash.slice(1)}});
|
16 |
}
|
17 |
)</script></html>`
|
18 |
)
|
|
|
12 |
`<script>addEventListener(
|
13 |
'hashchange',
|
14 |
event => {
|
15 |
+
parent.postMessage({data: {hash: new URL(event.newURL).hash.slice(1)}}, '*');
|
16 |
}
|
17 |
)</script></html>`
|
18 |
)
|