Browse Source

make the function async

Gildas 5 năm trước cách đây
mục cha
commit
eb132b33f1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      extension/core/bg/bookmarks.js

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

@@ -39,7 +39,7 @@ singlefile.extension.core.bg.bookmarks = (() => {
 		}
 	};
 
-	function onMessage(message) {
+	async function onMessage(message) {
 		if (message.method.endsWith(".saveCreatedBookmarks")) {
 			enable();
 			return {};