From d1af8bd196a4f5a90afc45de557e8d54f169776f Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Thu, 18 Jul 2019 14:28:49 +0200 Subject: [PATCH] Slightly more simplified dispatching of the 'findbarclose' events in `firefoxcom.js` --- web/firefoxcom.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/firefoxcom.js b/web/firefoxcom.js index d5a39685e..9aaea80ba 100644 --- a/web/firefoxcom.js +++ b/web/firefoxcom.js @@ -177,9 +177,7 @@ class MozL10n { return; } if (type === 'findbarclose') { - PDFViewerApplication.eventBus.dispatch('findbarclose', { - source: window, - }); + PDFViewerApplication.eventBus.dispatch(type, { source: window, }); return; } PDFViewerApplication.eventBus.dispatch('find', {