Skip to content

Leaflet detection not enough restrictive #68

Closed
@ArnaudLigny

Description

@ArnaudLigny

For example on https://contacts.google.com/preview/all it detects the Leaflet library with an undefined version.
I think it's because the name is too short: "L".

I suggest we could force control of "version" property to be sure it's really the Leaflet lib:

'Leaflet': {
        icon: 'leaflet',
        url: 'http://leafletjs.com',
        test: function(win) {
            if (win.L && win.L.version) {
                return {version: win.L.version};
            }
            return false;
        }
    },

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions