Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only open prompt when user clicks badge #828

Merged
merged 6 commits into from
Mar 14, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update src/content_script.js
Move prevent.default

Co-authored-by: luke crouch <luke.crouch@gmail.com>
  • Loading branch information
maxxcrawford and groovecoder authored Mar 14, 2022
commit bf5fa312d1383703bb896db33565445b73445b15
2 changes: 1 addition & 1 deletion src/content_script.js
Original file line number Diff line number Diff line change
@@ -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"