about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--kittybox-rs/src/frontend/indieauth.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/kittybox-rs/src/frontend/indieauth.js b/kittybox-rs/src/frontend/indieauth.js
index 03626b8..1762bdd 100644
--- a/kittybox-rs/src/frontend/indieauth.js
+++ b/kittybox-rs/src/frontend/indieauth.js
@@ -47,7 +47,7 @@ async function submit_handler(e) {
   e.preventDefault();
   const form = e.target;
 
-  const scopes = Array.from(form.elements.scope)
+  let scopes = form.elements.scope === undefined ? [] : Array.from(form.elements.scope)
       .filter(e => e.checked)
       .map(e => e.value);