mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 10:15:52 +01:00
using dynamic import for dialogs and widgets to speed up initial load
This commit is contained in:
@@ -16,7 +16,7 @@ function addTabHandler(handler) {
|
||||
tabHandlers.push(handler);
|
||||
}
|
||||
|
||||
async function showDialog() {
|
||||
export async function showDialog() {
|
||||
utils.closeActiveDialog();
|
||||
|
||||
glob.activeDialog = $dialog;
|
||||
@@ -38,11 +38,6 @@ async function saveOptions(options) {
|
||||
infoService.showMessage("Options change have been saved.");
|
||||
}
|
||||
|
||||
export default {
|
||||
showDialog,
|
||||
saveOptions
|
||||
};
|
||||
|
||||
addTabHandler((function() {
|
||||
const $themeSelect = $("#theme-select");
|
||||
const $zoomFactorSelect = $("#zoom-factor-select");
|
||||
|
||||
Reference in New Issue
Block a user