Skip to content

Build your personal knowledge base with Trilium Notes

fix(print): not printing at all

Elian Doran1d3d214101ae
diff --git a/apps/client/src/index.ts b/apps/client/src/index.ts
index 795adc8cfd..fa04369c9a 100644
--- a/apps/client/src/index.ts
+++ b/apps/client/src/index.ts
@@ -91,10 +91,17 @@ function setBodyAttributes() {
}
async function loadScripts() {
- if (glob.device === "mobile") {
- await import("./mobile.js");
- } else {
- await import("./desktop.js");
+ switch (glob.device) {
+ case "mobile":
+ await import("./mobile.js");
+ break;
+ case "print":
+ await import("./print.js");
+ break;
+ case "desktop":
+ default:
+ await import("./desktop.js");
+ break;
}
}