mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 01:06:36 +01:00
using dynamic import for dialogs and widgets to speed up initial load
This commit is contained in:
@@ -4,7 +4,7 @@ import utils from "../services/utils.js";
|
||||
const $dialog = $("#note-source-dialog");
|
||||
const $noteSource = $("#note-source");
|
||||
|
||||
function showDialog() {
|
||||
export function showDialog() {
|
||||
utils.closeActiveDialog();
|
||||
|
||||
glob.activeDialog = $dialog;
|
||||
@@ -41,8 +41,4 @@ function formatNode(node, level) {
|
||||
}
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
export default {
|
||||
showDialog
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user