mirror of
https://github.com/zadam/trilium.git
synced 2026-01-07 23:24:25 +01:00
fix(server/script): ignoring sub-component JSX
This commit is contained in:
parent
f68f99806b
commit
531698cafb
@ -321,7 +321,7 @@ class BNote extends AbstractBeccaEntity<BNote> {
|
|||||||
|
|
||||||
/** @returns JS script environment - either "frontend" or "backend" */
|
/** @returns JS script environment - either "frontend" or "backend" */
|
||||||
getScriptEnv() {
|
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";
|
return "frontend";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user