From de5d3ec3ad608893a9db75229296094f85c200c3 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 17 Jan 2021 18:43:16 -0500 Subject: [PATCH] Remove _onMessage (#1265) --- ext/mixed/js/hotkey-handler.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ext/mixed/js/hotkey-handler.js b/ext/mixed/js/hotkey-handler.js index 2de2a8d2..423410b7 100644 --- a/ext/mixed/js/hotkey-handler.js +++ b/ext/mixed/js/hotkey-handler.js @@ -169,12 +169,6 @@ class HotkeyHandler extends EventDispatcher { // Private - _onMessage({action, params}, sender, callback) { - const messageHandler = this._messageHandlers.get(action); - if (typeof messageHandler === 'undefined') { return false; } - return yomichan.invokeMessageHandler(messageHandler, params, callback, sender); - } - _onKeyDown(e) { const key = e.code; const hotkeyInfo = this._hotkeys.get(key);