You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As this connection is necessary for creating the port object, I think I won't be able to create the custom tip button.
I wonder if there's a limitation preventing access to the Brave extension outside "brave-site-specific-scripts" or if is just me doing something wrong.
Is it possible to adapt
brave-site-specific-scripts
code to create a custom tip button for my own website?Let's say I put the
port.postMessage
call, fromgithub/tipping.ts
, on a button on my website:brave-site-specific-scripts/scripts/brave_rewards/publisher/github/tipping.ts
Lines 36 to 50 in 6f59813
And replace the variables with my publisher data (plus other JS code like
port
), will it work?I'm thinking to create a WordPress plugin so people can add a "Donate with Brave" button on their pages.
PS: Sorry in advance if this is not the right place for this kind of question. Let me know if there is a better place to ask this.
The text was updated successfully, but these errors were encountered: