Skip to content

Commit

Permalink
fixed using query params with iframe example (#6604)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpal81xd authored May 23, 2024
1 parent d6d2b3f commit 6632337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/iframe/loader.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class ExampleLoader {
window.top.pc = window.pc;

// extracts example category and name from the URL
const match = /([^/]+)\.html$/.exec(location.href);
const match = /([^/]+)\.html$/.exec(new URL(location.href).pathname);
if (!match) {
return;
}
Expand Down

0 comments on commit 6632337

Please sign in to comment.