chore(excalidraw): update comment about EXCALIDRAW_ASSET_PATH

This commit is contained in:
Panagiotis Papadopoulos 2025-03-28 00:14:04 +01:00
parent db959aa997
commit 98df7bcd83

View File

@ -130,8 +130,8 @@ export default class ExcalidrawTypeWidget extends TypeWidget {
this.SCENE_VERSION_INITIAL = -1; // -1 indicates that it is fresh. excalidraw scene version is always >0
this.SCENE_VERSION_ERROR = -2; // -2 indicates error
// ensure that assets are loaded from trilium
// TODO:
// currently required by excalidraw, in order to allows self-hosting fonts locally.
// this avoids making excalidraw load the fonts from an external CDN.
(window as any).EXCALIDRAW_ASSET_PATH = `${window.location.origin}/${asset_path}/app-dist/excalidraw/`;
// temporary vars