diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-05-10 20:26:01 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-10 20:26:01 +0900 |
commit | 439c2a3df9c70c0baa26e2c9d597e109348e5499 (patch) | |
tree | a1a51e4643687635b0ad9bbc9af812cac953fd77 /src/background/shared | |
parent | d5116987760d6c43a4e0914537980bc93bf01fa3 (diff) | |
parent | 53c3ddab2e0efa656ab04726a85df04bb899f4d8 (diff) |
Merge pull request #388 from ueokande/create-bookmarks
addbookmark command
Diffstat (limited to 'src/background/shared')
-rw-r--r-- | src/background/shared/bookmarks.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/background/shared/bookmarks.js b/src/background/shared/bookmarks.js new file mode 100644 index 0000000..5e7927b --- /dev/null +++ b/src/background/shared/bookmarks.js @@ -0,0 +1,9 @@ +const create = (title, url) => { + return browser.bookmarks.create({ + type: 'bookmark', + title, + url, + }); +}; + +export { create }; |