summaryrefslogtreecommitdiff
path: root/ext/js/pages/settings/dictionary-controller.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-18 22:47:44 -0500
committerGitHub <noreply@github.com>2023-12-19 03:47:44 +0000
commit3ac72d40ef1384dd3f40d850003a7f8f4f30f6bd (patch)
treef3c3e8d2d891c24bb7b745e47967a76cfa7bae08 /ext/js/pages/settings/dictionary-controller.js
parent46821eeb7fc9e00645aeae1c7fce3e6e7b637ca0 (diff)
Fix welcome page not having certain elements (#379)
Diffstat (limited to 'ext/js/pages/settings/dictionary-controller.js')
-rw-r--r--ext/js/pages/settings/dictionary-controller.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/js/pages/settings/dictionary-controller.js b/ext/js/pages/settings/dictionary-controller.js
index 63671feb..6e9522db 100644
--- a/ext/js/pages/settings/dictionary-controller.js
+++ b/ext/js/pages/settings/dictionary-controller.js
@@ -380,14 +380,14 @@ export class DictionaryController {
this._databaseStateToken = null;
/** @type {boolean} */
this._checkingIntegrity = false;
- /** @type {HTMLButtonElement} */
- this._checkIntegrityButton = querySelectorNotNull(document, '#dictionary-check-integrity');
+ /** @type {?HTMLButtonElement} */
+ this._checkIntegrityButton = document.querySelector('#dictionary-check-integrity');
/** @type {HTMLElement} */
this._dictionaryEntryContainer = querySelectorNotNull(document, '#dictionary-list');
- /** @type {HTMLElement} */
- this._dictionaryInstallCountNode = querySelectorNotNull(document, '#dictionary-install-count');
- /** @type {HTMLElement} */
- this._dictionaryEnabledCountNode = querySelectorNotNull(document, '#dictionary-enabled-count');
+ /** @type {?HTMLElement} */
+ this._dictionaryInstallCountNode = document.querySelector('#dictionary-install-count');
+ /** @type {?HTMLElement} */
+ this._dictionaryEnabledCountNode = document.querySelector('#dictionary-enabled-count');
/** @type {?NodeListOf<HTMLElement>} */
this._noDictionariesInstalledWarnings = null;
/** @type {?NodeListOf<HTMLElement>} */