Closed htfab closed 5 months ago
Example to reproduce:
Relevant code: https://github.com/TinyTapeout/xschem-viewer/blob/main/src/index.ts#L90-L92
Suggested fix (untested): currentPath = new URLSearchParams(window.location.search).get('file') ?? defaultFile; newPath = (new URL(path, currentPath)).href;
Fixed, thanks for the detailed bug report!
Example to reproduce:
Relevant code: https://github.com/TinyTapeout/xschem-viewer/blob/main/src/index.ts#L90-L92
Suggested fix (untested): currentPath = new URLSearchParams(window.location.search).get('file') ?? defaultFile; newPath = (new URL(path, currentPath)).href;