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] {
|
var urlsFromClipboard: [URL] {
|
||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
if let pasteboard = UIPasteboard.general.string {
|
if let pasteboard = UIPasteboard.general.urls {
|
||||||
return urlsFrom(pasteboard)
|
return pasteboard
|
||||||
}
|
}
|
||||||
#elseif os(macOS)
|
#elseif os(macOS)
|
||||||
if let pasteboard = NSPasteboard.general.string(forType: .string) {
|
if let pasteboard = NSPasteboard.general.string(forType: .string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user