Skip to content

Commit

Permalink
Merge pull request #1155 from ThatOpen/Fix2
Browse files Browse the repository at this point in the history
Fix error
  • Loading branch information
beachtom authored Nov 19, 2024
2 parents 908fb78 + 89af45f commit 1c1de1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts/web-ifc-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ let WebIFCWasm: any;
let currentScriptPath: string;
if (typeof document !== 'undefined') {
const currentScriptData = (document.currentScript as HTMLScriptElement);
currentScriptPath = currentScriptData.src.substring(0, currentScriptData.src.lastIndexOf("/") + 1) ;
if (typeof currentScriptData.src !== 'undefined') currentScriptPath = currentScriptData.src.substring(0, currentScriptData.src.lastIndexOf("/") + 1) ;
}

export * from "./ifc-schema";
Expand Down

0 comments on commit 1c1de1d

Please sign in to comment.