Merge pull request #305 from michaeljtsai/master

Share button now supports "EagleFiler Import" and "Add to Reading List".
This commit is contained in:
Brent Simmons 2018-01-28 10:51:45 -08:00 committed by GitHub
commit 144bccd45e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -31,12 +31,12 @@ import Data
func writableTypes(for pasteboard: NSPasteboard) -> [NSPasteboard.PasteboardType] { func writableTypes(for pasteboard: NSPasteboard) -> [NSPasteboard.PasteboardType] {
var types = [ArticlePasteboardWriter.articleUTIType, .string] var types = [ArticlePasteboardWriter.articleUTIType]
if let link = article.preferredLink, let _ = URL(string: link) { if let link = article.preferredLink, let _ = URL(string: link) {
types += [.URL] types += [.URL]
} }
types += [.html, ArticlePasteboardWriter.articleUTIInternalType] types += [.string, .html, ArticlePasteboardWriter.articleUTIInternalType]
return types return types
} }