Open carsonreinke opened 4 years ago
Under a jsdom environment Element is not an Object.
Element
Object
if (typeof Element === 'undefined' || !(Element instanceof Object)) { return; }
https://github.com/que-etc/resize-observer-polyfill/blob/master/src/ResizeObserverSPI.js#L76
Probably simply just removing the later condition unless there was some reason for that.
Related to #50.
Under a jsdom environment
Element
is not anObject
.https://github.com/que-etc/resize-observer-polyfill/blob/master/src/ResizeObserverSPI.js#L76
Probably simply just removing the later condition unless there was some reason for that.
Related to #50.