Closed caption-dylan closed 6 years ago
Yes, this was introduced with #124, specifically the isWorkerEnv
function introduced https://github.com/leizongmin/js-xss/commit/723b307a32541044e4f4dcbb260c34b3168e87f2 commit. I'm preparing a PR with the fix.
Until that's merged, you can get around the issue with installing v1.0.0 of the lib, yarn add xss@1.0.0
Please try the new version xss@1.0.3
ok, thank you! @Asvarox @leizongmin