Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(excalidraw): update comment about EXCALIDRAW_ASSET_PATH
Panagiotis Papadopoulos98df7bcd836a
diff --git a/src/public/app/widgets/type_widgets/canvas.ts b/src/public/app/widgets/type_widgets/canvas.tsindex bb498d4878..777f359622 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 >0this.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