Skip to content

Commit

Permalink
Fixes copy server profile url.
Browse files Browse the repository at this point in the history
Copy url as a string instead of the url type.
  • Loading branch information
qiuyuzhou committed Sep 27, 2018
1 parent 39d6940 commit bbefbad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ShadowsocksX-NG/ShareServerProfilesWindowController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ShareServerProfilesWindowController: NSWindowController
if profile.isValid(), let url = profile.URL() {
let pb = NSPasteboard.general
pb.clearContents()
if pb.writeObjects([url as NSPasteboardWriting]) {
if pb.writeObjects([url.absoluteString as NSPasteboardWriting]) {
NSLog("Copy URL to clipboard")
} else {
NSLog("Failed to copy URL to clipboard")
Expand Down

0 comments on commit bbefbad

Please sign in to comment.