update build

This commit is contained in:
Zongmin Lei
2018-05-25 14:43:28 +08:00
parent 3863490634
commit 6abc5b52da
2 changed files with 2 additions and 2 deletions

2
dist/xss.js vendored
View File

@@ -450,7 +450,7 @@ if (typeof window !== "undefined") {
// using `xss` on the WebWorker, output `filterXSS` to the globals
function isWorkerEnv() {
return typeof self !== 'undefined' && self instanceof DedicatedWorkerGlobalScope;
return typeof self !== 'undefined' && typeof DedicatedWorkerGlobalScope !== 'undefined' && self instanceof DedicatedWorkerGlobalScope;
}
if (isWorkerEnv()) {
self.filterXSS = module.exports;

2
dist/xss.min.js vendored

File diff suppressed because one or more lines are too long