From 3c226215419ca815712e9568f7d871a96f5ff1cf Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Wed, 20 Dec 2023 00:18:55 -0500 Subject: Simplify message handlers (#396) --- ext/js/display/search-display-controller.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/js/display/search-display-controller.js') diff --git a/ext/js/display/search-display-controller.js b/ext/js/display/search-display-controller.js index 44850cbb..4dd41736 100644 --- a/ext/js/display/search-display-controller.js +++ b/ext/js/display/search-display-controller.js @@ -96,9 +96,9 @@ export class SearchDisplayController { ]); /* eslint-disable no-multi-spaces */ this._registerMessageHandlers([ - ['SearchDisplayController.getMode', {async: false, handler: this._onMessageGetMode.bind(this)}], - ['SearchDisplayController.setMode', {async: false, handler: this._onMessageSetMode.bind(this)}], - ['SearchDisplayController.updateSearchQuery', {async: false, handler: this._onExternalSearchUpdate.bind(this)}] + ['SearchDisplayController.getMode', this._onMessageGetMode.bind(this)], + ['SearchDisplayController.setMode', this._onMessageSetMode.bind(this)], + ['SearchDisplayController.updateSearchQuery', this._onExternalSearchUpdate.bind(this)] ]); /* eslint-enable no-multi-spaces */ @@ -549,7 +549,7 @@ export class SearchDisplayController { } /** - * @param {import('core').MessageHandlerArray} handlers + * @param {import('core').MessageHandlerMapInit} handlers */ _registerMessageHandlers(handlers) { for (const [name, handlerInfo] of handlers) { -- cgit v1.2.3