Skip to content

Commit

Permalink
clipboard.writeBookmark doesn't work on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 6, 2016
1 parent 943220c commit f3df478
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ function create(win, opts) {
}, {
label: 'Copy Link',
click() {
electron.clipboard.writeBookmark(props.linkText, props.linkURL);
if (process.platform === 'linux') {
electron.clipboard.writeText(props.linkURL);
} else {
electron.clipboard.writeBookmark(props.linkText, props.linkURL);
}
}
}, {
type: 'separator'
Expand Down

0 comments on commit f3df478

Please sign in to comment.