coyotte508 commited on
Commit
202c8cc
·
1 Parent(s): 4e7d927

correct origin

Browse files
Files changed (1) hide show
  1. app.ts +1 -1
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
  )