Add documentation for bmark

This commit is contained in:
Oliver Blanthorn 2017-11-22 12:18:41 +00:00
parent 1af85b293f
commit b1a4c5db38
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -842,6 +842,12 @@ export async function gobble(nChars: number, endCmd: string) {
//
// unsupported on android
/** Add or remove a bookmark.
*
* Optionally, you may give the bookmark a title. If no URL is given, a bookmark is added for the current page.
*
* If a bookmark already exists for the URL, it is removed.
*/
//#background
export async function bmark(url?: string, title = ""){
url = url === undefined ? (await activeTab()).url : url