You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MODULARIZE / scriptDirectory fails when loaded in an SVG #7494
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 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 30 days. Feel free to re-open at any time if this issue is still relevant.
Activity
originalsouth commentedon Mar 25, 2019
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=workerto enforce this behavior.stale commentedon Mar 24, 2020
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.
adjenks commentedon Apr 19, 2020
This is still an issue. The workaround works, but is still a workaround.
kripken commentedon Apr 20, 2020
Ok, let's reopen it, hopefully someone will want to look into fixing it.
stale commentedon Jun 3, 2021
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 30 days. Feel free to re-open at any time if this issue is still relevant.