aboutsummaryrefslogtreecommitdiff
path: root/src/background/shared
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-05-07 22:00:30 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-05-08 20:46:59 +0900
commitd0eba2546a559922a53b59de44e7946b9d6b7c84 (patch)
tree9088813cb3112ef8cb09d167d8fb619a8d7a4616 /src/background/shared
parentef6bbd117e042fecea85b2dbb8294ad60e4e8d48 (diff)
addbookmark command
Diffstat (limited to 'src/background/shared')
-rw-r--r--src/background/shared/bookmarks.js9
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 };