fix the asset path resolving

This commit is contained in:
Robert Nasarek 2026-06-25 10:28:16 +02:00
parent 9b10181d11
commit 1efcf41b50
2 changed files with 6 additions and 14 deletions

View file

@ -3662,10 +3662,6 @@ export const Viewer = {
setCore('mainCanvas', Viewer.mainCanvas);
if (!core.PRESENTATION_MODE) {
const scriptUrl = document.currentScript?.src || import.meta.url;
Viewer.DFG_ASSETS = scriptUrl.replace(/\/[^\/]*$/, '');
setCore('DFG_ASSETS', Viewer.DFG_ASSETS);
getModuleAssetBasePath();
Viewer.actionMenu = document.createElement("div");