Skip to content

Commit

Permalink
wip(ix): update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoMcA committed Mar 3, 2025
1 parent 4cc9012 commit 90d43d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/src/lit/play/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ export class PlayRunner extends LitElement {
/** @type {string | undefined} */
let uuid = new URL(origin, "https://example.com").hostname.split(".")[0];
if (uuid !== this._subdomain && source && "location" in source) {
// we could be on localhost, check `source` for the uuid param we set
// NB: this doesn't work cross origin
// `origin` doesn't contain the uuid on localhost
// so check `source` for the uuid param we set
// this only works on localhost (it errors cross-origin)
try {
uuid =
new URLSearchParams(source.location.search).get("uuid") || undefined;
Expand Down

0 comments on commit 90d43d4

Please sign in to comment.