Skip to content

Commit 4d11714

Browse files
committed
Change DevToolsJsonOptions instance to Default
1 parent c3e257f commit 4d11714

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dotnet/src/webdriver/DevTools/Json/DevToolsJsonOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace OpenQA.Selenium.DevTools.Json;
66

77
internal static class DevToolsJsonOptions
88
{
9-
public static JsonSerializerOptions DevToolsSerializerOptions { get; } = new JsonSerializerOptions()
9+
public static JsonSerializerOptions Default { get; } = new JsonSerializerOptions()
1010
{
1111
Converters =
1212
{

third_party/dotnet/devtools/src/generator/Templates/domain.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ namespace {{rootNamespace}}.{{domain.Name}}
6161
if (m_eventMap.ContainsKey(e.EventName))
6262
{
6363
var eventData = m_eventMap[e.EventName];
64-
var eventArgs = e.EventData.Deserialize(eventData.EventArgsType, global::OpenQA.Selenium.DevTools.Json.DevToolsJsonOptions.DevToolsSerializerOptions);
64+
var eventArgs = e.EventData.Deserialize(eventData.EventArgsType, global::OpenQA.Selenium.DevTools.Json.DevToolsJsonOptions.Default);
6565
eventData.EventInvoker(eventArgs);
6666
}
6767
}

0 commit comments

Comments
 (0)