From 24415156667acf78eb0f258afec6fdc38448c5e0 Mon Sep 17 00:00:00 2001 From: Tom <7283497+thfrei@users.noreply.github.com> Date: Tue, 19 Apr 2022 00:08:40 +0200 Subject: [PATCH] set EXCALIDRAW_ASSET_PATH to avoid loading from unpkg.com --- src/public/app/widgets/type_widgets/canvas_note.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/public/app/widgets/type_widgets/canvas_note.js b/src/public/app/widgets/type_widgets/canvas_note.js index 93d03c0b8..7ff779eaa 100644 --- a/src/public/app/widgets/type_widgets/canvas_note.js +++ b/src/public/app/widgets/type_widgets/canvas_note.js @@ -87,6 +87,8 @@ export default class ExcalidrawTypeWidget extends TypeWidget { // config this.debounceTimeOnchangeHandler = 750; // ms + // ensure that assets are loaded from trilium + window.EXCALIDRAW_ASSET_PATH = `${window.location.origin}/node_modules/@excalidraw/excalidraw/dist/`; // temporary vars this.currentNoteId = "";