Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(style): pass platform to CSS
Elian Dorane9cf31065719
diff --git a/src/routes/index.ts b/src/routes/index.tsindex 3590e6627a..e6213c6500 100644--- a/src/routes/index.ts+++ b/src/routes/index.ts@@ -33,6 +33,7 @@ function index(req: Request, res: Response) {themeCssUrl: getThemeCssUrl(options.theme),headingStyle: options.headingStyle,layoutOrientation: options.layoutOrientation,+ platform: process.platform,mainFontSize: parseInt(options.mainFontSize),treeFontSize: parseInt(options.treeFontSize),detailFontSize: parseInt(options.detailFontSize),diff --git a/src/views/desktop.ejs b/src/views/desktop.ejsindex a2c9aa401b..7c1d3fbbe6 100644--- a/src/views/desktop.ejs+++ b/src/views/desktop.ejs@@ -6,7 +6,7 @@<link rel="manifest" crossorigin="use-credentials" href="manifest.webmanifest"><title>TriliumNext Notes</title></head>-<body class="desktop heading-style-<%= headingStyle %> layout-<%= layoutOrientation %>">+<body class="desktop heading-style-<%= headingStyle %> layout-<%= layoutOrientation %> platform-<%= platform %>"><noscript><%= t("javascript-required") %></noscript><script>