mirror of
https://github.com/zadam/trilium.git
synced 2026-03-09 21:50:24 +01:00
fix(server/script): ignoring sub-component JSX
This commit is contained in:
@@ -321,7 +321,7 @@ class BNote extends AbstractBeccaEntity<BNote> {
|
||||
|
||||
/** @returns JS script environment - either "frontend" or "backend" */
|
||||
getScriptEnv() {
|
||||
if (this.isHtml() || (this.isJavaScript() && this.mime.endsWith("env=frontend"))) {
|
||||
if (this.isHtml() || (this.isJavaScript() && this.mime.endsWith("env=frontend")) || this.isJsx()) {
|
||||
return "frontend";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user