Emscripten: MODULARIZE / scriptDirectory fails when loaded in an SVG

Created on 12 Nov 2018  路  4Comments  路  Source: emscripten-core/emscripten

good first bug help wanted

All 4 comments

In the case of an SVG we probably want:
scriptDirectory = self.location.href;
Instead of:
scriptDirectory = document.currentScript.src;
as the latter is null.

As a workaround one can compile with -s ENVIRONMENT=worker to enforce this behavior.

This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.

This is still an issue. The workaround _works_, but is still a _workaround_.

Ok, let's reopen it, hopefully someone will want to look into fixing it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

szilardszaloki picture szilardszaloki  路  4Comments

lormuc picture lormuc  路  4Comments

HolgerStrauss picture HolgerStrauss  路  4Comments

lokpoi888 picture lokpoi888  路  4Comments

answer1103 picture answer1103  路  4Comments