Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 98df7bc

Browse files
committed
chore(excalidraw): update comment about EXCALIDRAW_ASSET_PATH
1 parent db959aa commit 98df7bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/public/app/widgets/type_widgets/canvas.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ export default class ExcalidrawTypeWidget extends TypeWidget {
130130
this.SCENE_VERSION_INITIAL = -1; // -1 indicates that it is fresh. excalidraw scene version is always >0
131131
this.SCENE_VERSION_ERROR = -2; // -2 indicates error
132132

133-
// ensure that assets are loaded from trilium
134-
// TODO:
133+
// currently required by excalidraw, in order to allows self-hosting fonts locally.
134+
// this avoids making excalidraw load the fonts from an external CDN.
135135
(window as any).EXCALIDRAW_ASSET_PATH = `${window.location.origin}/${asset_path}/app-dist/excalidraw/`;
136136

137137
// temporary vars

0 commit comments

Comments
 (0)