mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	chore(excalidraw): update comment about EXCALIDRAW_ASSET_PATH
This commit is contained in:
		
							parent
							
								
									db959aa997
								
							
						
					
					
						commit
						98df7bcd83
					
				| @ -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_INITIAL = -1; // -1 indicates that it is fresh. excalidraw scene version is always >0
 | ||||||
|         this.SCENE_VERSION_ERROR = -2; // -2 indicates error
 |         this.SCENE_VERSION_ERROR = -2; // -2 indicates error
 | ||||||
| 
 | 
 | ||||||
|         // ensure that assets are loaded from trilium
 |         // currently required by excalidraw, in order to allows self-hosting fonts locally.
 | ||||||
|         // TODO:
 |         // 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/`; |         (window as any).EXCALIDRAW_ASSET_PATH = `${window.location.origin}/${asset_path}/app-dist/excalidraw/`; | ||||||
| 
 | 
 | ||||||
|         // temporary vars
 |         // temporary vars
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Panagiotis Papadopoulos
						Panagiotis Papadopoulos