Fix demo 2

This commit is contained in:
Yeicor
2025-08-02 14:06:50 +02:00
parent a54b91f704
commit 810647276b

View File

@@ -58,7 +58,7 @@ export class NetworkManager extends EventTarget {
// If there is a #name parameter in the URL, use it as the name
let hashParams: URLSearchParams
try {
let urlObj = new URL(url);
let urlObj = new URL(url, window.location.href);
hashParams = new URLSearchParams(urlObj.hash.slice(1));
} catch (e) {
hashParams = new URLSearchParams();