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.
2 parents 908fb78 + 89af45f commit 1c1de1dCopy full SHA for 1c1de1d
src/ts/web-ifc-api.ts
@@ -29,7 +29,7 @@ let WebIFCWasm: any;
29
let currentScriptPath: string;
30
if (typeof document !== 'undefined') {
31
const currentScriptData = (document.currentScript as HTMLScriptElement);
32
- currentScriptPath = currentScriptData.src.substring(0, currentScriptData.src.lastIndexOf("/") + 1) ;
+ if (typeof currentScriptData.src !== 'undefined') currentScriptPath = currentScriptData.src.substring(0, currentScriptData.src.lastIndexOf("/") + 1) ;
33
}
34
35
export * from "./ifc-schema";
0 commit comments