Skip to content

Commit

Permalink
🥅 Catch cookie error
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Sep 12, 2024
1 parent ca9ad2e commit b71be43
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/mixins/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,13 @@ export default {
console.error(err);
return false;
}
setCookie('likebutton_cookie', 1);
try {
setCookie('likebutton_cookie', 1);
} catch (err) {
// eslint-disable-next-line no-console
console.error(err);
return false;
}
return res;
},
getParentSuperLikeID() {
Expand Down

0 comments on commit b71be43

Please sign in to comment.