Skip to content

Throw Error when imported în non-browser environment #11

Description

@asynxc

Hello,

We use this module to polyfill IE10. But when using it in SSR powered application, it crash the server with following error :

var MutationObserver = window.MutationObserver ^ ReferenceError: window is not defined at Object.<anonymous> (/home/.../editor/node_modules/mutation-observer/index.js:3:24)

a PR submitted in order to fix this issue #10

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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