Conversation
|
I think the version numbers are highly outdated :) @fhemberger What do you think about the other change? I lack expertise here to judge it properly. |
| } else { | ||
| root.DOMPurify = factory(root); | ||
| } | ||
| root.DOMPurify = factory(root); |
There was a problem hiding this comment.
Tests are failing:
/home/travis/build/cure53/DOMPurify/src/purify.js:11
root.DOMPurify = factory(root);
^
TypeError: Cannot set property 'DOMPurify' of null
at /home/travis/build/cure53/DOMPurify/src/purify.js:11:20
at Object.<anonymous> (/home/travis/build/cure53/DOMPurify/src/purify.js:12:2)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/travis/build/cure53/DOMPurify/test/jsdom-node.js:7:17)
at Module._compile (module.js:413:34)
There was a problem hiding this comment.
I don't know what the issue is with Electron. Can you please elaborate a bit more?
There was a problem hiding this comment.
|
Any info or news here? @mkazlauskas |
|
I'm not sure how your tests fail. What my change intended to do is export the library to global scope (window) in Electron environment in the same way as in regular browser environment. Since Electron has both |
|
Given the massive changes in #206, does this PR still make sense? |
|
Closing this for now, feel free to re-open if this still makes sense. |
Background & Context
Also removes deprecated version field in bower.json