diff --git a/src/SharpWebview/SharpWebview.csproj b/src/SharpWebview/SharpWebview.csproj index a3523b9..fcd8874 100644 --- a/src/SharpWebview/SharpWebview.csproj +++ b/src/SharpWebview/SharpWebview.csproj @@ -35,7 +35,6 @@ - diff --git a/src/SharpWebview/Webview.cs b/src/SharpWebview/Webview.cs index 33751d9..1a68342 100644 --- a/src/SharpWebview/Webview.cs +++ b/src/SharpWebview/Webview.cs @@ -1,9 +1,9 @@ using System; -using Newtonsoft.Json; using SharpWebview.Content; using System.Diagnostics; using System.Collections.Generic; using System.Runtime.InteropServices; +using System.Text.Json; namespace SharpWebview { @@ -206,10 +206,10 @@ private void InterceptExternalLinks() // This method opens the url parameter in the system browser Bind("openExternalLink", (id, req) => { - dynamic args = JsonConvert.DeserializeObject(req); + var args = JsonSerializer.Deserialize(req); ProcessStartInfo psi = new ProcessStartInfo { - FileName = args[0], + FileName = args[0].ToString(), UseShellExecute = true }; Process.Start (psi);