mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-19 22:24:17 +01:00
Fix demo 2
This commit is contained in:
@@ -58,7 +58,7 @@ export class NetworkManager extends EventTarget {
|
|||||||
// If there is a #name parameter in the URL, use it as the name
|
// If there is a #name parameter in the URL, use it as the name
|
||||||
let hashParams: URLSearchParams
|
let hashParams: URLSearchParams
|
||||||
try {
|
try {
|
||||||
let urlObj = new URL(url);
|
let urlObj = new URL(url, window.location.href);
|
||||||
hashParams = new URLSearchParams(urlObj.hash.slice(1));
|
hashParams = new URLSearchParams(urlObj.hash.slice(1));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
hashParams = new URLSearchParams();
|
hashParams = new URLSearchParams();
|
||||||
|
|||||||
Reference in New Issue
Block a user