Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanVukovic99 committed Feb 1, 2024
1 parent b4eeb66 commit 77e7944
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions ext/js/pages/settings/languages-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import {EventListenerCollection} from '../../core/event-listener-collection.js';
import {querySelectorNotNull} from '../../dom/query-selector.js';
import {yomitan} from '../../yomitan.js';

export class LanguagesController {
/**
Expand All @@ -36,7 +35,7 @@ export class LanguagesController {
/** */
async prepare() {
await this._updateOptions();
this._languages = await yomitan.api.getLanguages();
this._languages = await this._settingsController.application.api.getLanguages();
this._languages.sort((a, b) => a.iso.localeCompare(b.iso));
this._fillSelect();
}
Expand Down
3 changes: 1 addition & 2 deletions ext/js/pages/settings/text-transformations-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@


import {querySelectorNotNull} from '../../dom/query-selector.js';
import {yomitan} from '../../yomitan.js';

export class TextTransformationsController {
/**
Expand Down Expand Up @@ -56,7 +55,7 @@ export class TextTransformationsController {
this._language = options.general.language;

this._clearSettingsItems();
this._transformations = await yomitan.api.getTextTransformations(this._language);
this._transformations = await this._settingsController.application.api.getTextTransformations(this._language);
this._renderSettingsItems();
}
}
Expand Down

0 comments on commit 77e7944

Please sign in to comment.