Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: do not dynamically load dialogs

thecodrr6e1f73eb07b9
diff --git a/apps/web/src/common/dialogcontroller.js b/apps/web/src/common/dialogcontroller.js
index d2a641ec3..059a93201 100644
--- a/apps/web/src/common/dialogcontroller.js
+++ b/apps/web/src/common/dialogcontroller.js
@@ -12,6 +12,7 @@ import * as Icon from "../components/icons";
import download from "../utils/download";
import { zip } from "../utils/zip";
import Config from "../utils/config";
+import Dialogs from "../components/dialogs";
function showDialog(dialog) {
const root = document.getElementById("dialogContainer");
@@ -23,10 +24,8 @@ function showDialog(dialog) {
hashNavigate("/", true);
resolve(result);
};
- return import("../components/dialogs").then(({ default: Dialogs }) => {
- const PropDialog = dialog(Dialogs, perform);
- ReactDOM.render(<ThemeProvider>{PropDialog}</ThemeProvider>, root);
- });
+ const PropDialog = dialog(Dialogs, perform);
+ ReactDOM.render(<ThemeProvider>{PropDialog}</ThemeProvider>, root);
});
}
return Promise.reject("No element with id 'dialogContainer'");