summaryrefslogtreecommitdiff
path: root/src/xss/InjectionCheckWorker.js
diff options
context:
space:
mode:
authorhackademix2020-04-19 23:43:28 +0200
committerhackademix2020-04-19 23:43:28 +0200
commit1e01979e41901e19aaf25c88f1a15dcaf51d2c69 (patch)
tree6e8225641d188f5821d077491e89e8b18ac9f853 /src/xss/InjectionCheckWorker.js
parent97c7cc74f357d7e03051087e2bef6c6252a2163f (diff)
downloadnoscript-1e01979e41901e19aaf25c88f1a15dcaf51d2c69.tar.gz
noscript-1e01979e41901e19aaf25c88f1a15dcaf51d2c69.tar.xz
noscript-1e01979e41901e19aaf25c88f1a15dcaf51d2c69.zip
[XSS] Fixed false positives and timeouts (thanks riaggren for report).
Diffstat (limited to 'src/xss/InjectionCheckWorker.js')
-rw-r--r--src/xss/InjectionCheckWorker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xss/InjectionCheckWorker.js b/src/xss/InjectionCheckWorker.js
index 47f007d..50ab138 100644
--- a/src/xss/InjectionCheckWorker.js
+++ b/src/xss/InjectionCheckWorker.js
@@ -74,7 +74,7 @@ Entities = {
if (msg.handler in Handlers) try {
await Handlers[msg.handler](msg);
} catch (e) {
- postMessage({error: e});
+ postMessage({error: e.message});
}
}