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
commit c52880c78a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.")
}