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
chore(client): get icons to load
Elian Doranb745fb476ea9
diff --git a/apps/client/src/desktop.html b/apps/client/src/desktop.htmlindex 334e12d6e8..2d03c2ce1a 100644--- a/apps/client/src/desktop.html+++ b/apps/client/src/desktop.html@@ -28,7 +28,8 @@<script>async function bootstrap() {await setupGlob();- await loadStylesheets();+ loadStylesheets();+ loadIcons();await loadScripts();}@@ -43,7 +44,7 @@};}- async function loadStylesheets() {+ function loadStylesheets() {const { assetPath, themeCssUrl, themeUseNextAsBase } = window.glob;const cssToLoad = [];cssToLoad.push(`${assetPath}/stylesheets/theme-light.css`);@@ -67,6 +68,12 @@}}+ function loadIcons() {+ const styleEl = document.createElement("style");+ styleEl.innerText = window.glob.iconPackCss;+ document.head.appendChild(styleEl);+ }+async function loadScripts() {const assetPath = glob.assetPath;await import(`./${assetPath}/runtime.js`);diff --git a/apps/server/src/assets/views/desktop.ejs b/apps/server/src/assets/views/desktop.ejsindex 1a81cc883e..fd79d957db 100644--- a/apps/server/src/assets/views/desktop.ejs+++ b/apps/server/src/assets/views/desktop.ejs@@ -1,10 +1,5 @@<!DOCTYPE html><html lang="en">-<head>- <style id="trilium-icon-packs">- <%- iconPackCss %>- </style>-</head><bodyclass="desktop heading-style-<%= headingStyle %> layout-<%= layoutOrientation %> platform-<%= platform %> <%= isElectron ? 'electron' : '' %> <%= hasNativeTitleBar ? 'native-titlebar' : '' %> <%= hasBackgroundEffects ? 'background-effects' : '' %>"lang="<%= currentLocale.id %>" dir="<%= currentLocale.rtl ? 'rtl' : 'ltr' %>"