This commit is contained in:
Alexei Anoshenko 2026-09-02 17:48:21 +03:00
parent 1a46153fa3
commit affbd50d02
1 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,10 @@ func (app *wasmApp) handleMessage(this js.Value, args []js.Value) any {
func (app *wasmApp) removeSession(id int) { func (app *wasmApp) removeSession(id int) {
} }
func (app *wasmApp) getCreateContentFunc() func(Session) SessionContent {
return app.createContentFunc
}
func (app *wasmApp) createSession() Session { func (app *wasmApp) createSession() Session {
obj, _ := ParseDataText(js.Global().Call("sessionInfo", "").String()) obj, _ := ParseDataText(js.Global().Call("sessionInfo", "").String())
session := newSession(app, 0, "", obj) session := newSession(app, 0, "", obj)