1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Slightly more simplified dispatching of the 'findbarclose' events in firefoxcom.js

This commit is contained in:
Jonas Jenwald 2019-07-18 14:28:49 +02:00
parent 8e5aa484fb
commit d1af8bd196

View file

@ -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', {