Преглед изворни кода

ignore errors when updating the bookmark info

Gildas пре 5 година
родитељ
комит
a4111ee13b
1 измењених фајлова са 7 додато и 1 уклоњено
  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) {