From 2631ef0d01142c0e0abfd1a96b7ee1ea3c931802 Mon Sep 17 00:00:00 2001 From: vincent Date: Sat, 26 Mar 2022 13:57:52 +0100 Subject: [PATCH] wip #5181 @0.5 --- resources/js/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/search.js b/resources/js/search.js index 520c466..35382b3 100644 --- a/resources/js/search.js +++ b/resources/js/search.js @@ -41,7 +41,7 @@ export default () => ({ // PDFs can be opened directly if (result.type === 'pdf') { - attributes = '@click.prevent="openPDF($el.attributes.href.value); closeSearch();"'; + attributes = '@click.prevent="app().openPDF($el.attributes.href.value); app().closeSearch();"'; } return `${result.displayedTitle}`; -- 2.39.5