mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-19 14:14:13 +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
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user