Skip to content

MODULARIZE / scriptDirectory fails when loaded in an SVG #7494

Closed

Description

@kripken

Reported here: #6903 (comment)

Activity

  1. originalsouth commented on Mar 25, 2019

    @originalsouth

    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.

  2. stale commented on Mar 24, 2020

    @stale

    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.

  3. adjenks commented on Apr 19, 2020

    @adjenks

    This is still an issue. The workaround works, but is still a workaround.

  4. kripken commented on Apr 20, 2020

    @kripken
    MemberAuthor

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

  5. stale commented on Jun 3, 2021

    @stale

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions