diff options
author | Darius Jahandarie <djahandarie@gmail.com> | 2023-11-12 02:16:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-12 02:16:11 +0000 |
commit | d06029ea8c4244f40f9ddfeec5154f9ef2a4c053 (patch) | |
tree | 93f3e15603ec38faef01070475904c08d2e9280b /ext/js/input | |
parent | f263e994c6eca2438eaff79cb22f1b48fe14b7b2 (diff) | |
parent | 784dcd93b02443bc253e3af43ad0586a1add39c5 (diff) |
Merge pull request #314 from starxeras/replace-yomichan
Replace all instances of yomichan
Diffstat (limited to 'ext/js/input')
-rw-r--r-- | ext/js/input/hotkey-handler.js | 4 | ||||
-rw-r--r-- | ext/js/input/hotkey-help-controller.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/js/input/hotkey-handler.js b/ext/js/input/hotkey-handler.js index f05351bb..2fd35a5c 100644 --- a/ext/js/input/hotkey-handler.js +++ b/ext/js/input/hotkey-handler.js @@ -18,7 +18,7 @@ import {EventDispatcher, EventListenerCollection} from '../core.js'; import {DocumentUtil} from '../dom/document-util.js'; -import {yomichan} from '../yomichan.js'; +import {yomitan} from '../yomitan.js'; /** * Class which handles hotkey events and actions. @@ -53,7 +53,7 @@ export class HotkeyHandler extends EventDispatcher { prepare() { this._isPrepared = true; this._updateEventHandlers(); - yomichan.crossFrame.registerHandlers([ + yomitan.crossFrame.registerHandlers([ ['HotkeyHandler.forwardHotkey', {async: false, handler: this._onMessageForwardHotkey.bind(this)}] ]); } diff --git a/ext/js/input/hotkey-help-controller.js b/ext/js/input/hotkey-help-controller.js index 67df9f84..51ec8fac 100644 --- a/ext/js/input/hotkey-help-controller.js +++ b/ext/js/input/hotkey-help-controller.js @@ -17,7 +17,7 @@ */ import {isObject} from '../core.js'; -import {yomichan} from '../yomichan.js'; +import {yomitan} from '../yomitan.js'; import {HotkeyUtil} from './hotkey-util.js'; export class HotkeyHelpController { @@ -29,7 +29,7 @@ export class HotkeyHelpController { } async prepare() { - const {platform: {os}} = await yomichan.api.getEnvironmentInfo(); + const {platform: {os}} = await yomitan.api.getEnvironmentInfo(); this._hotkeyUtil.os = os; await this._setupGlobalCommands(this._globalActionHotkeys); } |