We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e2bc39 commit 2c140f5Copy full SHA for 2c140f5
src/png-exporter.ts
@@ -82,7 +82,8 @@ class PngExporter {
82
receiver(message);
83
});
84
85
- const baseHref = new URL('.', window.location.href).toString();
+ const url = new URL(window.location.href);
86
+ const baseHref = url.origin + url.pathname;
87
this.worker.postMessage({ type: 'init', baseHref });
88
89
this.receiveCallback = (resolve) => {
0 commit comments