Browse Source

ignore errors when updating the bookmark info

Gildas 5 years ago
parent
commit
a4111ee13b
1 changed files with 7 additions and 1 deletions
  1. 7 1
      extension/core/bg/bookmarks.js

+ 7 - 1
extension/core/bg/bookmarks.js

@@ -30,7 +30,13 @@ singlefile.extension.core.bg.bookmarks = (() => {
 		onMessage,
 		saveCreatedBookmarks: enable,
 		disable,
-		update: (id, changes) => browser.bookmarks.update(id, changes)
+		update: async (id, changes) => {
+			try {
+				await browser.bookmarks.update(id, changes);
+			} catch (error) {
+				// ignored
+			}
+		}
 	};
 
 	function onMessage(message) {