Explorar el Código

ignore errors when updating the bookmark info

Gildas hace 5 años
padre
commit
a4111ee13b
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  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) {