Skip to content

Annotator.Util undefined on pages that define a variable called global #2723

Closed
@robertknight

Description

@robertknight

See #2397 (comment) for a minimal repro case of this issue

Launching H via the extension or bookmarklet fails on http://www.thebookseller.com/futurebook/publishing-has-entered-new-and-different-era with a 'cannot read Util of undefined` error or variation on that.

        var Annotator = require("annotator");
        var g = Annotator.Util.getGlobal(); // 'Annotator' is undefined here

I'm sure I investigated something similar before that was related to a site defining its own version of 'global' or something similar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions