aboutsummaryrefslogtreecommitdiff
path: root/ext/js/pages/settings/dictionary-controller.js
diff options
context:
space:
mode:
authorstarxeras <starxeras@gmail.com>2023-11-10 19:48:27 -0600
committerstarxeras <starxeras@gmail.com>2023-11-10 19:48:27 -0600
commitc4134168be8bf8df4e7ba4860e3d99b3c2256734 (patch)
treed397833c6d7aca11b9fa452d80f0c61089f59b64 /ext/js/pages/settings/dictionary-controller.js
parentdae82459073c18c903c0bb54c578476ed83dbfd8 (diff)
`yomichan` -> `yomitan`
Diffstat (limited to 'ext/js/pages/settings/dictionary-controller.js')
-rw-r--r--ext/js/pages/settings/dictionary-controller.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/js/pages/settings/dictionary-controller.js b/ext/js/pages/settings/dictionary-controller.js
index 05f4f396..155ce55e 100644
--- a/ext/js/pages/settings/dictionary-controller.js
+++ b/ext/js/pages/settings/dictionary-controller.js
@@ -18,7 +18,7 @@
import {EventListenerCollection, log} from '../../core.js';
import {DictionaryWorker} from '../../language/dictionary-worker.js';
-import {yomichan} from '../../yomichan.js';
+import {yomitan} from '../../yomitan.js';
class DictionaryEntry {
constructor(dictionaryController, fragment, index, dictionaryInfo) {
@@ -284,7 +284,7 @@ export class DictionaryController {
this._deleteDictionaryModal = this._modalController.getModal('dictionary-confirm-delete');
this._allCheckbox = document.querySelector('#all-dictionaries-enabled');
- yomichan.on('databaseUpdated', this._onDatabaseUpdated.bind(this));
+ yomitan.on('databaseUpdated', this._onDatabaseUpdated.bind(this));
this._settingsController.on('optionsChanged', this._onOptionsChanged.bind(this));
this._allCheckbox.addEventListener('change', this._onAllCheckboxChange.bind(this), false);
document.querySelector('#dictionary-confirm-delete-button').addEventListener('click', this._onDictionaryConfirmDelete.bind(this), false);
@@ -681,7 +681,7 @@ export class DictionaryController {
async _deleteDictionaryInternal(dictionaryTitle, onProgress) {
await new DictionaryWorker().deleteDictionary(dictionaryTitle, onProgress);
- yomichan.api.triggerDatabaseUpdated('dictionary', 'delete');
+ yomitan.api.triggerDatabaseUpdated('dictionary', 'delete');
}
async _deleteDictionarySettings(dictionaryTitle) {
@@ -706,7 +706,7 @@ export class DictionaryController {
}
_triggerStorageChanged() {
- yomichan.trigger('storageChanged');
+ yomitan.trigger('storageChanged');
}
_updateDictionaryEntryCount() {