Allow attachments to be included in the scripts, closes #66

This commit is contained in:
azivner
2018-03-01 22:30:06 -05:00
parent ee0833390a
commit f4b57f4c57
2 changed files with 7 additions and 4 deletions

View File

@@ -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() {