mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-01 03:46:44 +01:00
Fixed asserting throwing an error when user is not logged in
This selector is optional and does not exist for the not-logged-in users. We don't really need to assert it existence in this case.
This commit is contained in:
parent
2a89162cba
commit
0122efcbc8
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ export function setupSettings() {
|
|||
if (!$('#js-setting-table')) return;
|
||||
|
||||
const localCheckboxes = $$<HTMLInputElement>('[data-tab="local"] input[type="checkbox"]');
|
||||
const themeSelect = assertNotNull($<HTMLSelectElement>('#user_theme'));
|
||||
const themeSelect = $<HTMLSelectElement>('#user_theme');
|
||||
const styleSheet = assertNotNull($<HTMLLinkElement>('head link[rel="stylesheet"]'));
|
||||
|
||||
// Local settings
|
||||
|
|
Loading…
Reference in a new issue