-
Notifications
You must be signed in to change notification settings - Fork 113
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
Extension: Disable share buttons when domain is blackisted #9694
Conversation
we should also handle the right click , all actions must be disabled |
Indeed, good catch !!!! |
setCurrentDomain(url.hostname); | ||
} | ||
} catch (e) { | ||
console.error("Invalid URL:", e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't want to log an error here (can be a normal behaviour if we are on chrome:// urls for example)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chrome urls does not raise errors so if there's an error I think we want to know! But you're right, I still added a commit to handle chrome urls to also disable the buttons when we're on Chrome
f1a796e
to
0a77ff6
Compare
0a77ff6
to
c72dff6
Compare
Will handle the right click on my next PR! |
Description
Risk
Can be rolled back.
Deploy Plan
1/ Merge the base branch PR #9688.
2/ Publish the SDK package.
3/ Bump the extension package on the extension.