1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-11-06 17:39:57 +02:00

fixed jsvm example

This commit is contained in:
Gani Georgiev
2024-10-09 18:27:00 +03:00
parent f7ed55554f
commit 01e13f5717

View File

@@ -94,7 +94,7 @@ type Config struct {
// OnInit: func(vm *goja.Runtime) { // OnInit: func(vm *goja.Runtime) {
// // register custom bindings // // register custom bindings
// vm.Set("myCustomVar", 123) // vm.Set("myCustomVar", 123)
// } // },
// }) // })
func MustRegister(app core.App, config Config) { func MustRegister(app core.App, config Config) {
if err := Register(app, config); err != nil { if err := Register(app, config); err != nil {