mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 10:01:39 -05:00
Add documentation for bmark
This commit is contained in:
parent
1af85b293f
commit
b1a4c5db38
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue