Skip to content

Commit

Permalink
fix(ios): make Clipboard.read return text/plain (#2565)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Mar 12, 2020
1 parent 49e9f8d commit 078284d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/Capacitor/Capacitor/Plugins/Clipboard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ public class CAPClipboardPlugin : CAPPlugin {
if UIPasteboard.general.hasStrings {
call.success([
"value": UIPasteboard.general.string!,
"type": "text/html"
"type": "text/plain"
])
return
}
if UIPasteboard.general.hasURLs {
let url = UIPasteboard.general.url!
call.success([
"value": url.absoluteString,
"type": "text/html"
"type": "text/plain"
])
return
}
Expand Down

0 comments on commit 078284d

Please sign in to comment.