aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings/dictionary-import-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/settings/dictionary-import-controller.js')
-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() {