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; } }