Skip to content

Build your personal knowledge base with Trilium Notes

fix CSS loading from subdomain, #741

zadamb0310e34e2c6
diff --git a/src/public/javascripts/desktop.js b/src/public/javascripts/desktop.js
index 4af63e07da..4c2333621a 100644
--- a/src/public/javascripts/desktop.js
+++ b/src/public/javascripts/desktop.js
@@ -78,7 +78,7 @@ window.onerror = function (msg, url, lineNo, columnNo, error) {
};
for (const appCssNoteId of window.appCssNoteIds) {
- cssLoader.requireCss(`/api/notes/download/${appCssNoteId}`);
+ cssLoader.requireCss(`api/notes/download/${appCssNoteId}`);
}
const wikiBaseUrl = "https://github.com/zadam/trilium/wiki/";
diff --git a/src/public/javascripts/dialogs/options/appearance.js b/src/public/javascripts/dialogs/options/appearance.js
index 64fa59a3de..0708877bc7 100644
--- a/src/public/javascripts/dialogs/options/appearance.js
+++ b/src/public/javascripts/dialogs/options/appearance.js
@@ -131,7 +131,7 @@ export default class ApperanceOptions {
if (noteId) {
// make sure the CSS is loaded
// if the CSS has been loaded and then updated then the changes won't take effect though
- cssLoader.requireCss(`/api/notes/download/${noteId}`);
+ cssLoader.requireCss(`api/notes/download/${noteId}`);
}
this.$body.addClass("theme-" + newTheme);