mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 17:27:08 +08:00
1 parent
bd8add89f3
commit
2e5241733a
2 files changed
+9
-11
No files matched your search
@@ -18,6 +18,7 @@ package webview
|
||||
|
||||
import (
|
||||
"context"
|
||||
"crypto/rand"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
@@ -179,7 +180,7 @@ func (h *Host) call(ctx context.Context, name string, raw json.RawMessage) (any,
|
||||
engine.ReserveOutput = h.reserveOutput
|
||||
engine.CleanupOutput = h.cleanupOutput
|
||||
engine.LoadFont = h.loadFont
|
||||
id := token()
|
||||
id := rand.Text()
|
||||
h.mu.Lock()
|
||||
h.engines[id] = engine
|
||||
h.mu.Unlock()
|
||||
|
||||
Reference in new issue
Block a user