From 98df7bcd836a4d0dc00da2dbddd1d9eaa978a1b3 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Fri, 28 Mar 2025 00:14:04 +0100 Subject: [PATCH] chore(excalidraw): update comment about EXCALIDRAW_ASSET_PATH --- src/public/app/widgets/type_widgets/canvas.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/public/app/widgets/type_widgets/canvas.ts b/src/public/app/widgets/type_widgets/canvas.ts index bb498d487..777f35962 100644 --- a/src/public/app/widgets/type_widgets/canvas.ts +++ b/src/public/app/widgets/type_widgets/canvas.ts @@ -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