Skip to content

Commit

Permalink
Remove Newtonsoft dependency from SSHWalletWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
lauren-ciha committed Sep 24, 2024
1 parent dd10c32 commit 0b3afdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion extensions/CoreWidgetProvider/CoreWidgetProvider.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
</PackageReference>
<PackageReference Include="Microsoft.Windows.DevHome.SDK" Version="0.700.544" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.5.240311000" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Serilog" Version="4.0.1" />
<PackageReference Include="Serilog.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Serilog.Settings.Configuration" Version="8.0.2" />
Expand Down
4 changes: 2 additions & 2 deletions extensions/CoreWidgetProvider/Widgets/SSHWalletWidget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ public override void OnCustomizationRequested(WidgetCustomizationRequestedArgs c
// { "data": "hostname" }
private void HandleConnect(WidgetActionInvokedArgs args)
{
var jsonObject = JObject.Parse(args.Data);
var host = jsonObject["data"]?.ToString();
var jsonObject = JsonDocument.Parse(args.Data).RootElement;
var host = jsonObject.GetProperty("data").GetString();

if (string.IsNullOrEmpty(host))
{
Expand Down

0 comments on commit 0b3afdf

Please sign in to comment.