mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +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