diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-05-07 22:00:30 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-05-08 20:46:59 +0900 |
commit | d0eba2546a559922a53b59de44e7946b9d6b7c84 (patch) | |
tree | 9088813cb3112ef8cb09d167d8fb619a8d7a4616 /src/background/shared | |
parent | ef6bbd117e042fecea85b2dbb8294ad60e4e8d48 (diff) |
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 }; |