aboutsummaryrefslogtreecommitdiff
path: root/src/background/shared
diff options
context:
space:
mode:
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 };