From d0eba2546a559922a53b59de44e7946b9d6b7c84 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Mon, 7 May 2018 22:00:30 +0900 Subject: addbookmark command --- src/background/shared/bookmarks.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/background/shared/bookmarks.js (limited to 'src/background/shared') 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 }; -- cgit v1.2.3