summaryrefslogtreecommitdiff
path: root/src/xss/sanitizeName.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/xss/sanitizeName.js')
-rw-r--r--src/xss/sanitizeName.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xss/sanitizeName.js b/src/xss/sanitizeName.js
index 4f36cbf..2a8acb6 100644
--- a/src/xss/sanitizeName.js
+++ b/src/xss/sanitizeName.js
@@ -1,4 +1,4 @@
-ns.on("perms", event => {
+ns.on("capabilities", event => {
if (ns.allows("script")) {
let name = ns.getWindowName();
if (/[<"'\`(=:]/.test(name)) {