Merge pull request #1395 from omnivore-app/fix/note-quotes

Fix bug causing quotes to appear around notes on iOS
This commit is contained in:
Jackson Harper
2022-11-07 11:48:26 +08:00
committed by GitHub

View File

@ -429,7 +429,7 @@ public enum WebViewDispatchEvent {
let encoder = JSONEncoder()
if let encoded = try? encoder.encode(annotation) {
let str = String(decoding: encoded, as: UTF8.self)
return "event.annotation = '\(str)';"
return "event.annotation = \(str);"
} else {
throw BasicError.message(messageText: "Unable to serialize highlight note.")
}