Skip to content

Script breaks Leaflet implementation #89

Open
@MajPay

Description

@MajPay

When adding the polyfill like this:

<script src="container-query-polyfill.modern.js" async></script>

it may interfere with Leaflet implementations as it writes a function to the global "L" variable.

In my concrete case window.L is a function with the following content:

function L(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128||95===e}

When i add the script tag with type="module" it works but i dont know if it works correctly that way...

Do you have any advice or could you provide an update, that avoids messing with the window object?

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