mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +01:00
using dynamic import for dialogs and widgets to speed up initial load
This commit is contained in:
@@ -7,7 +7,7 @@ const $dialog = $("#jump-to-note-dialog");
|
||||
const $autoComplete = $("#jump-to-note-autocomplete");
|
||||
const $showInFullTextButton = $("#show-in-full-text-button");
|
||||
|
||||
async function showDialog() {
|
||||
export async function showDialog() {
|
||||
utils.closeActiveDialog();
|
||||
|
||||
glob.activeDialog = $dialog;
|
||||
@@ -46,7 +46,3 @@ function showInFullText(e) {
|
||||
$showInFullTextButton.click(showInFullText);
|
||||
|
||||
utils.bindElShortcut($dialog, 'ctrl+return', showInFullText);
|
||||
|
||||
export default {
|
||||
showDialog
|
||||
};
|
||||
Reference in New Issue
Block a user