Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api.runOnBackend error with Trilium Next #12

Open
maphew opened this issue Oct 14, 2024 · 0 comments
Open

api.runOnBackend error with Trilium Next #12

maphew opened this issue Oct 14, 2024 · 0 comments

Comments

@maphew
Copy link

maphew commented Oct 14, 2024

I'm attempting to get command-palette working with Trilium Next, beta 0.90.7-beta.

I created the js-frontend nodes for the 2 js files and added the labels. After restarting Trilium and invoking cmd-palette with ctrl-shift-P the widget pops up, but is overlaid with a small dialog saying:

Error: You're passing an async function to api.runOnBackend() which will likely not work as you intended. Either make the function synchronous (by removing 'async' keyword), or use api.runAsyncOnBackendWithManualTransactionHandling()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant