From c189b27688c69a4fe9e246d1832049fffd419696 Mon Sep 17 00:00:00 2001 From: kpal Date: Thu, 23 May 2024 15:35:26 +0100 Subject: [PATCH] fixed using query params with iframe example --- examples/iframe/loader.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/iframe/loader.mjs b/examples/iframe/loader.mjs index 31fd51d5d58..48ed2ce2f44 100644 --- a/examples/iframe/loader.mjs +++ b/examples/iframe/loader.mjs @@ -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; }