mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
split javascript mime type into frontend and backend
This commit is contained in:
@@ -25,7 +25,7 @@ class Note extends Entity {
|
||||
|
||||
isJavaScript() {
|
||||
return (this.type === "code" || this.type === "file")
|
||||
&& (this.mime === "application/javascript" || this.mime === "application/x-javascript");
|
||||
&& (this.mime.startsWith("application/javascript") || this.mime === "application/x-javascript");
|
||||
}
|
||||
|
||||
isHtml() {
|
||||
|
||||
Reference in New Issue
Block a user