mirror of
https://github.com/zadam/trilium.git
synced 2026-01-04 21:54:23 +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" */
|
||||
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";
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user