mirror of
https://github.com/tauri-apps/zserge-webview.git
synced 2026-02-04 02:11:18 +01:00
(Go) Don't delete binding after it is called. (#337)
This commit is contained in:
@@ -229,7 +229,6 @@ func _webviewDispatchGoCallback(index unsafe.Pointer) {
|
||||
func _webviewBindingGoCallback(w C.webview_t, id *C.char, req *C.char, index uintptr) {
|
||||
m.Lock()
|
||||
f := bindings[uintptr(index)]
|
||||
delete(bindings, uintptr(index))
|
||||
m.Unlock()
|
||||
jsString := func(v interface{}) string { b, _ := json.Marshal(v); return string(b) }
|
||||
status, result := 0, ""
|
||||
|
||||
Reference in New Issue
Block a user