addbookmark command
This commit is contained in:
parent
ef6bbd117e
commit
d0eba2546a
3 changed files with 22 additions and 2 deletions
9
src/background/shared/bookmarks.js
Normal file
9
src/background/shared/bookmarks.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
const create = (title, url) => {
|
||||
return browser.bookmarks.create({
|
||||
type: 'bookmark',
|
||||
title,
|
||||
url,
|
||||
});
|
||||
};
|
||||
|
||||
export { create };
|
Reference in a new issue