Skip to content

Bug in legacy loader #208

@mackonen

Description

@mackonen

Currently the loader checks for existing script on page with

// If already included in the page:
 if (window.google!== undefined) {
    return Promise.resolve(window.google.charts);
}

unfortunately this doesn't work if you have used other google scripts on the page that are using the google namespace...

this should be instead:

// If already included in the page:
 if (window.google.charts !== undefined) {
    return Promise.resolve(window.google.charts);
}

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