diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-10-19 17:25:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-19 17:25:15 -0400 |
commit | 91b4feb934f524fc30be9300480ac584b65c6166 (patch) | |
tree | 69b07f26c48662562b5db423d71fffca749462a1 /ext/bg/js/settings/dictionary-import-controller.js | |
parent | 69e5ea61388519c59c30f8fa4b225d82ff120bc7 (diff) |
Make dictionary spinner optional (#945)
Diffstat (limited to 'ext/bg/js/settings/dictionary-import-controller.js')
-rw-r--r-- | ext/bg/js/settings/dictionary-import-controller.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/bg/js/settings/dictionary-import-controller.js b/ext/bg/js/settings/dictionary-import-controller.js index 4a1a7e26..a603fb82 100644 --- a/ext/bg/js/settings/dictionary-import-controller.js +++ b/ext/bg/js/settings/dictionary-import-controller.js @@ -242,7 +242,9 @@ class DictionaryImportController { } _setSpinnerVisible(visible) { - this._spinner.hidden = !visible; + if (this._spinner !== null) { + this._spinner.hidden = !visible; + } } _preventPageExit() { |