Skip to content

Commit

Permalink
Update src/content_script.js
Browse files Browse the repository at this point in the history
Move prevent.default

Co-authored-by: luke crouch <[email protected]>
  • Loading branch information
maxxcrawford and groovecoder authored Mar 14, 2022
1 parent 6162a18 commit bf5fa31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content_script.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,10 @@ function addFacebookBadge (target, badgeClassUId, socialAction) {
htmlBadgeFragmentPromptButtonAllow.addEventListener("click", (e) => {
if (!e.isTrusted) {
// The click was not user generated so ignore
e.preventDefault();
return false;
}

e.preventDefault();
allowClickSwitch = true;
browser.runtime.sendMessage({
message: "add-domain-to-list"
Expand Down

0 comments on commit bf5fa31

Please sign in to comment.