aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-10-19 17:25:15 -0400
committerGitHub <noreply@github.com>2020-10-19 17:25:15 -0400
commit91b4feb934f524fc30be9300480ac584b65c6166 (patch)
tree69b07f26c48662562b5db423d71fffca749462a1 /ext/bg
parent69e5ea61388519c59c30f8fa4b225d82ff120bc7 (diff)
Make dictionary spinner optional (#945)
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/settings/dictionary-import-controller.js4
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() {