mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
using dynamic import for dialogs and widgets to speed up initial load
This commit is contained in:
@@ -2,14 +2,10 @@ import utils from "../services/utils.js";
|
||||
|
||||
const $dialog = $("#help-dialog");
|
||||
|
||||
async function showDialog() {
|
||||
export async function showDialog() {
|
||||
utils.closeActiveDialog();
|
||||
|
||||
glob.activeDialog = $dialog;
|
||||
|
||||
$dialog.modal();
|
||||
}
|
||||
|
||||
export default {
|
||||
showDialog
|
||||
}
|
||||
Reference in New Issue
Block a user