Skip to content

Commit 468bb7f

Browse files
committed
fix
1 parent fa0ce50 commit 468bb7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/fb_moreReactionStory.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
export default {
22
icon: "😍",
33
name: {
4-
en: "Facebook Story - send more emoji reactions",
5-
vi: "Facebook Story - thêm nhiều loại emoji",
4+
en: "Facebook Story - Add more emoji reactions",
5+
vi: "Facebook Story - Thêm nhiều loại emoji",
66
},
77
description: {
88
en: "React story Facebook with more emojis",
@@ -37,7 +37,6 @@ export default {
3737
const user_id = getUserId();
3838

3939
const timeoutCheckStoriesFooter = setInterval(() => {
40-
console.log('check')
4140
if (!window.location.href.includes("facebook.com/stories")) return;
4241
if (!!document.querySelector(".ufs-more-react-story")) return;
4342

@@ -93,10 +92,11 @@ export default {
9392
try {
9493
emojiLi.classList.add("loading");
9594
await reactStory(user_id, fb_dtsg, storyId, emoji);
96-
emojiLi.classList.remove("loading");
9795
addFloatingEmoji(emoji, emojiLi);
9896
} catch (e) {
9997
console.error(e);
98+
} finally {
99+
emojiLi.classList.remove("loading");
100100
}
101101
};
102102

0 commit comments

Comments
 (0)