fix(spice): use Vite BASE_URL for ngspice default asset base
This commit is contained in:
parent
1397076dfd
commit
0972fa90a1
|
|
@ -75,7 +75,7 @@ interface SubscriberCallbacks {
|
|||
onStderr?: (line: string) => void;
|
||||
}
|
||||
|
||||
const DEFAULT_ASSET_BASE = '/wasm/ngspice-interactive/';
|
||||
const DEFAULT_ASSET_BASE = `${import.meta.env?.BASE_URL ?? '/'}wasm/ngspice-interactive/`.replace(/\/+/g, '/');
|
||||
|
||||
export class NgSpiceInteractive {
|
||||
private worker: Worker | null = null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue