mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-16 05:35:03 +00:00
fix: using correct deserialization type instead JsonElement for everyting except mixed arrays
This commit is contained in:
@@ -34,10 +34,10 @@ namespace ElectronNET.API
|
||||
|
||||
Task.Run(() =>
|
||||
{
|
||||
BridgeConnector.Socket.On<JsonElement>("browserView-getBounds-reply", (result) =>
|
||||
BridgeConnector.Socket.On<Rectangle>("browserView-getBounds-reply", (result) =>
|
||||
{
|
||||
BridgeConnector.Socket.Off("browserView-getBounds-reply");
|
||||
taskCompletionSource.SetResult(result.Deserialize(ElectronJsonContext.Default.Rectangle));
|
||||
taskCompletionSource.SetResult(result);
|
||||
});
|
||||
|
||||
BridgeConnector.Socket.Emit("browserView-getBounds", Id);
|
||||
|
||||
Reference in New Issue
Block a user