From 41aaba23dbdc5f3cece776e47cd5250cfd19bd7e Mon Sep 17 00:00:00 2001 From: MarvNC Date: Tue, 6 Feb 2024 19:47:59 -0800 Subject: [PATCH] Fix API access --- ext/js/display/search-display-controller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/js/display/search-display-controller.js b/ext/js/display/search-display-controller.js index 8734d951d8..f4aaa84b11 100644 --- a/ext/js/display/search-display-controller.js +++ b/ext/js/display/search-display-controller.js @@ -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; @@ -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'); } /**