aboutsummaryrefslogtreecommitdiff
path: root/ext/js/pages/settings
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-05-10 18:04:08 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-05-11 21:33:17 -0400
commit9f3835c274fa317908bf6668a8ac38ddf5f0cb3c (patch)
treee224920a172914d1fe2e0f0d2309b46402838c3c /ext/js/pages/settings
parent9d1c1f4000ed61e6078ff087c54585bd077e67d4 (diff)
Fix invalid node/selectors being used in the dictionary delete process (#1658)
Diffstat (limited to 'ext/js/pages/settings')
-rw-r--r--ext/js/pages/settings/dictionary-controller.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/ext/js/pages/settings/dictionary-controller.js b/ext/js/pages/settings/dictionary-controller.js
index eca2a7d2..c8a525ce 100644
--- a/ext/js/pages/settings/dictionary-controller.js
+++ b/ext/js/pages/settings/dictionary-controller.js
@@ -624,16 +624,9 @@ class DictionaryController {
if (index < 0) { return; }
const statusFooter = this._statusFooter;
- const {node} = this._dictionaryEntries[index];
const progressSelector = '.dictionary-delete-progress';
- const progressContainers = [
- ...node.querySelectorAll('.progress-container'),
- ...document.querySelectorAll(`#dictionaries-modal ${progressSelector}`)
- ];
- const progressBars = [
- ...node.querySelectorAll('.progress-bar'),
- ...document.querySelectorAll(`${progressSelector} .progress-bar`)
- ];
+ const progressContainers = document.querySelectorAll(`#dictionaries-modal ${progressSelector}`);
+ const progressBars = document.querySelectorAll(`${progressSelector} .progress-bar`);
const infoLabels = document.querySelectorAll(`${progressSelector} .progress-info`);
const statusLabels = document.querySelectorAll(`${progressSelector} .progress-status`);
const prevention = this._settingsController.preventPageExit();