Replies: 1 comment
-
|
The setup button note should have the following relationship and label
Both should be JS front end. Also which version of trilium are you using? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I am pretty new to trilium, so this could be user error. I followed the instructions in the scripts to copy both scripts into JS frontend notes, and applied the label and the relationship to setupButton.js. When I tried to load the page in my mobile browser, I didn't see any new buttons, though. I think that could be related to the errors I'm seeing in the notes. In setupButton.js, on line 7 (async function setupButton() {", there's an error that says "Parsing error: unexpected token function", and in mobileView.js, it is giving me an error on line 7 for an unexpected character `.
I am guessing that those errors are why it won't run, but I'm not sure why it is giving the errors. Javascript isn't a language I use, but it doesn't appear to be noticeably wrong to me.
Any advice for what I could be doing wrong?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions