Skip to content

Commit

Permalink
Fix API access
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvNC committed Feb 7, 2024
1 parent b397620 commit 41aaba2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/js/display/search-display-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class SearchDisplayController {
this._onDisplayOptionsUpdated({options: displayOptions});
}

const optionsFull = await yomitan.api.optionsGetFull();
const optionsFull = await this._display.application.api.optionsGetFull();
this._optionsFull = optionsFull;
const {profiles, profileCurrent} = optionsFull;

Expand Down Expand Up @@ -342,7 +342,7 @@ export class SearchDisplayController {
scope: 'global',
optionsContext: null
};
await yomitan.api.modifySettings([modification], 'action-popup');
await this._display.application.api.modifySettings([modification], 'search');
}

/**
Expand Down

0 comments on commit 41aaba2

Please sign in to comment.