mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix CSS loading from subdomain, #741
This commit is contained in:
parent
761c51069a
commit
b0310e34e2
@ -78,7 +78,7 @@ window.onerror = function (msg, url, lineNo, columnNo, error) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
for (const appCssNoteId of window.appCssNoteIds) {
|
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/";
|
const wikiBaseUrl = "https://github.com/zadam/trilium/wiki/";
|
||||||
|
@ -131,7 +131,7 @@ export default class ApperanceOptions {
|
|||||||
if (noteId) {
|
if (noteId) {
|
||||||
// make sure the CSS is loaded
|
// make sure the CSS is loaded
|
||||||
// if the CSS has been loaded and then updated then the changes won't take effect though
|
// 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);
|
this.$body.addClass("theme-" + newTheme);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user