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