Skip to content

ElectronClipboard.writeBookmark method

ElectronClipboard › writeBookmark

Unofficial

Writes a bookmark to the clipboard. The title is only used on darwin. Only available on darwin and win32.

Signature:

writeBookmark(title: string, url: string, type?: "clipboard" | "selection" | undefined): void

Parameters:

Parameter Type Description
title string The bookmark title.
url string The bookmark URL.
type? "clipboard" | "selection" | undefined The clipboard type.

Returns: void