Skip to content

Commit

Permalink
chore: riotclient-zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
Coooookies committed Dec 13, 2023
1 parent e017b5f commit c3d2957
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion Fix-LCU-Window.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
Expand Down
9 changes: 2 additions & 7 deletions Util/LeagueClientAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Threading.Tasks;
using System.Net.Http;
using System.Text.RegularExpressions;
using Newtonsoft.Json;

namespace Fix_LCU_Window.Util
{
Expand All @@ -27,13 +26,9 @@ public async Task<double> GetClientZoom()
{
try
{
var Response = await Client.GetAsync("/lol-settings/v1/local/video");
var Response = await Client.GetAsync("/riotclient/zoom-scale");
Response.EnsureSuccessStatusCode();

var ResponseJson = JsonConvert.DeserializeObject<dynamic>(await Response.Content.ReadAsStringAsync());
var ZoomScale = ResponseJson.data.ZoomScale;

return ZoomScale;
return double.Parse(await Response.Content.ReadAsStringAsync());
}
catch
{
Expand Down

0 comments on commit c3d2957

Please sign in to comment.