hushline
hushline copied to clipboard
Javascript error on settings page without a PGP key
Describe the bug
When you load /settings from the main branch, this error appears in the console:
settings.js:80 Uncaught TypeError: Cannot read properties of null (reading 'checked')
at HTMLDocument.<anonymous> (settings.js:80:4)
This includes line 80 of settings.js:
var forwarding_enabled = document.querySelector(
"input[id='forwarding_enabled']",
).checked;
This is happening because input[id='forwarding_enabled'] doesn't exist until you add a PGP key.