2026-03-13 14:35:01 +00:00
|
|
|
package browser
|
|
|
|
|
|
|
|
|
|
import "forge.lthn.ai/core/go/pkg/core"
|
|
|
|
|
|
2026-03-31 12:18:41 +01:00
|
|
|
// Register(p) binds the browser service to a Core instance.
|
|
|
|
|
// core.WithService(browser.Register(wailsBrowser))
|
2026-03-13 14:35:01 +00:00
|
|
|
func Register(p Platform) func(*core.Core) (any, error) {
|
|
|
|
|
return func(c *core.Core) (any, error) {
|
|
|
|
|
return &Service{
|
|
|
|
|
ServiceRuntime: core.NewServiceRuntime[Options](c, Options{}),
|
|
|
|
|
platform: p,
|
|
|
|
|
}, nil
|
|
|
|
|
}
|
|
|
|
|
}
|