Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

Edge isn't loading CSS fallbacks correctly #91

Open
jansende opened this issue Aug 29, 2019 · 0 comments
Open

Edge isn't loading CSS fallbacks correctly #91

jansende opened this issue Aug 29, 2019 · 0 comments

Comments

@jansende
Copy link

jansende commented Aug 29, 2019

Edge isn't loading CSS fallbacks correctly. This is a bug which got introduced in v1.1.6.

In line 502 to 505, instead of:

// Needed for IE11 especially. `onload` is fired even when there's a 404 for `link` elements.
if (type !== 'js' && !me.css.check(library) && Object.hasOwnProperty.call(window, "ActiveXObject") && !window.ActiveXObject) {
    return me.spawn.failed(payload);
}

It should be:

if (type !== 'js' && !me.css.check(library)) {
    var isIE = /*@cc_on!@*/false || !!document.documentMode;
    if (!isIE)
        return me.spawn.failed(payload);
    // Needed for IE11 especially. `onload` is fired even when there's a 404 for `link` elements.
    else if (Object.hasOwnProperty.call(window, "ActiveXObject") && !window.ActiveXObject)
        return me.spawn.failed(payload);
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant