hushline icon indicating copy to clipboard operation
hushline copied to clipboard

Javascript error on settings page without a PGP key

Open micahflee opened this issue 1 year ago • 0 comments

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.

micahflee avatar Sep 05 '24 23:09 micahflee