mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Fix urls handling from pasteboard
This commit is contained in:
parent
8978bf3f33
commit
6ca6a40aa1
@ -50,8 +50,8 @@ struct OpenVideosModel {
|
||||
|
||||
var urlsFromClipboard: [URL] {
|
||||
#if os(iOS)
|
||||
if let pasteboard = UIPasteboard.general.string {
|
||||
return urlsFrom(pasteboard)
|
||||
if let pasteboard = UIPasteboard.general.urls {
|
||||
return pasteboard
|
||||
}
|
||||
#elseif os(macOS)
|
||||
if let pasteboard = NSPasteboard.general.string(forType: .string) {
|
||||
|
Loading…
Reference in New Issue
Block a user