From 1d3d214101ae6c674efad99fdf1bca0d307a96f8 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 18 Jan 2026 22:05:16 +0200 Subject: [PATCH] fix(print): not printing at all --- apps/client/src/index.ts | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/apps/client/src/index.ts b/apps/client/src/index.ts index 795adc8cf..fa04369c9 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; } }