-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Labels
Description
I'm trying to get this to work in a web worker (diffing 2 trees), ran into a few issues. Happy to send a PR as I get it all worked out.
There's a few of these in the build: https://github.com/skatejs/dom-diff/blob/master/dist/index.js#L301
If we use self instead of window it will work in both contexts.
Second thing are several instanceof Node checks, and since Node is going to be undefined these will throw. Should change those to check if Node is truthy first.