diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-12-18 22:47:44 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-19 03:47:44 +0000 |
commit | 3ac72d40ef1384dd3f40d850003a7f8f4f30f6bd (patch) | |
tree | f3c3e8d2d891c24bb7b745e47967a76cfa7bae08 | |
parent | 46821eeb7fc9e00645aeae1c7fce3e6e7b637ca0 (diff) |
Fix welcome page not having certain elements (#379)
-rw-r--r-- | ext/js/pages/settings/dictionary-controller.js | 12 |
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>} */ |