Make event names match in Swift and JS

This commit is contained in:
Jackson Harper
2022-08-29 11:28:54 +08:00
parent a08a8d0089
commit b63c9b0265

View File

@ -300,7 +300,7 @@ public enum WebViewDispatchEvent {
case let .updateFontSize(size: size):
return "event.fontSize = '\(size)';"
case let .updateColorMode(isDark: isDark):
return "event.isDarkMode = '\(isDark)';"
return "event.isDark = '\(isDark)';"
case let .updateFontFamily(family: family):
return "event.fontFamily = '\(family)';"
case let .saveAnnotation(annotation: annotation):