Skip to content

Commit

Permalink
Merge branch 'cuttingedge-merge-ServerV2' into cuttingedge
Browse files Browse the repository at this point in the history
  • Loading branch information
C9Glax committed Jan 15, 2025
2 parents 1701881 + 268441a commit b4edccc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tranga/TrangaSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ public static JObject AsJObject()
jobj.Add("requestLimits", JToken.FromObject(requestLimits));
jobj.Add("bufferLibraryUpdates", JToken.FromObject(bufferLibraryUpdates));
jobj.Add("bufferNotifications", JToken.FromObject(bufferNotifications));
jobj.Add("chromiumStartTimeout", JToken.FromObject(ChromiumStartupTimeoutMs));
jobj.Add("chromiumPageTimeout", JToken.FromObject(ChromiumPageTimeoutMs));
return jobj;
}

Expand All @@ -193,5 +195,9 @@ public static void Deserialize(string serialized)
bufferLibraryUpdates = blu.Value<bool>()!;
if (jobj.TryGetValue("bufferNotifications", out JToken? bn))
bufferNotifications = bn.Value<bool>()!;
if (jobj.TryGetValue("chromiumStartTimeout", out JToken? cst))
ChromiumStartupTimeoutMs = cst.Value<int>();
if (jobj.TryGetValue("chromiumPageTimeout", out JToken? cpt))
ChromiumPageTimeoutMs = cpt.Value<int>();
}
}

0 comments on commit b4edccc

Please sign in to comment.