Lottie-web: Failing on IE 10

Created on 25 Aug 2017  路  3Comments  路  Source: airbnb/lottie-web

It seems it doesn't work on IE 10 with the following error message.

(unknown): Script error
1 File https://cdnjs.cloudflare.com/ajax/libs/bodymovin/4.10.2/bodymovin_light.min.js line (unknown) col 0 in [anonymous]

I do not mind its supportability on IE 10 since it is pretty old. However, shouldn't we have a browser compatibility chart somewhere in README?

bug

All 3 comments

It seems to be related to trying to change the window value.
I will try to fit it.

In IE9 it also doesn't work.

image

The main problem is you want change variable window but you can't.
In old browser we can't redeclare constant variable with name 'window'.

I don't know why you set the same name but, mayby change name to another or put this in line in function in argument.

(function(root, factory) {
    if (typeof define === "function" && define.amd) {
        define(factory);
    } else if (typeof module === "object" && module.exports) {
        module.exports = factory();
    } else {
        root.bodymovin = factory();
    }
}((window || {}), function() {
...

Should this be closed?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DannyK123456 picture DannyK123456  路  3Comments

dulllud picture dulllud  路  3Comments

phileastv picture phileastv  路  3Comments

Ipaulsen picture Ipaulsen  路  4Comments

RenanSgorlom picture RenanSgorlom  路  3Comments