mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
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:
commit
c52880c78a
1 changed files with 1 additions and 1 deletions
|
|
@ -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.")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue