mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	Allow attachments to be included in the scripts, closes #66
This commit is contained in:
		| @@ -24,7 +24,8 @@ class Note extends Entity { | ||||
|     } | ||||
|  | ||||
|     isJavaScript() { | ||||
|         return this.type === "code" && this.mime === "application/javascript"; | ||||
|         return (this.type === "code" || this.type === "file") | ||||
|             && (this.mime === "application/javascript" || this.mime === "application/x-javascript"); | ||||
|     } | ||||
|  | ||||
|     async getAttributes() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user