aboutsummaryrefslogtreecommitdiff
path: root/ext/js/input/hotkey-help-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/input/hotkey-help-controller.js')
-rw-r--r--ext/js/input/hotkey-help-controller.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/ext/js/input/hotkey-help-controller.js b/ext/js/input/hotkey-help-controller.js
index 4c4f56d5..a75ab9db 100644
--- a/ext/js/input/hotkey-help-controller.js
+++ b/ext/js/input/hotkey-help-controller.js
@@ -16,9 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import {isObject} from '../core/utilities.js';
import {parseJson} from '../core/json.js';
-import {yomitan} from '../yomitan.js';
+import {isObject} from '../core/utilities.js';
import {HotkeyUtil} from './hotkey-util.js';
export class HotkeyHelpController {
@@ -34,10 +33,10 @@ export class HotkeyHelpController {
}
/**
- * @returns {Promise<void>}
+ * @param {import('../comm/api.js').API} api
*/
- async prepare() {
- const {platform: {os}} = await yomitan.api.getEnvironmentInfo();
+ async prepare(api) {
+ const {platform: {os}} = await api.getEnvironmentInfo();
this._hotkeyUtil.os = os;
await this._setupGlobalCommands(this._globalActionHotkeys);
}