fix the asset path resolving
This commit is contained in:
parent
9b10181d11
commit
1efcf41b50
2 changed files with 6 additions and 14 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue