Skip to content

window.document not defined #4

@NN-Tobbe

Description

@NN-Tobbe

In function googletagmanager(id,datalayer), setting window = this causes window.document to be undefined. This makes calling d.getElementByTagName cause an exception.

I fixed this by removing window = this, but I am not sure what problems this might cause. Why is windows set to this at all?

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