update build
This commit is contained in:
2
dist/xss.js
vendored
2
dist/xss.js
vendored
@@ -450,7 +450,7 @@ if (typeof window !== "undefined") {
|
|||||||
|
|
||||||
// using `xss` on the WebWorker, output `filterXSS` to the globals
|
// using `xss` on the WebWorker, output `filterXSS` to the globals
|
||||||
function isWorkerEnv() {
|
function isWorkerEnv() {
|
||||||
return typeof self !== 'undefined' && self instanceof DedicatedWorkerGlobalScope;
|
return typeof self !== 'undefined' && typeof DedicatedWorkerGlobalScope !== 'undefined' && self instanceof DedicatedWorkerGlobalScope;
|
||||||
}
|
}
|
||||||
if (isWorkerEnv()) {
|
if (isWorkerEnv()) {
|
||||||
self.filterXSS = module.exports;
|
self.filterXSS = module.exports;
|
||||||
|
|||||||
2
dist/xss.min.js
vendored
2
dist/xss.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user