We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using the CustomEvent interface it might be possible to add an event that gets dispatchEvent run every time there is a change.
Example 1:
SB.config.addEventListener(null, function() { // all changes console.info("config updated"); });
Example 2:
SB.config.addEventListener("sponsorTimes", function() { // changes on value/map console.info("sponsorTimes updated"); });
The text was updated successfully, but these errors were encountered:
Currently an idea do not know if it should be added or not @ajayyy
Sorry, something went wrong.
It could be cleaner
@ajayyy how could it be cleaner
I meant that this method would be cleaner than the current method.
No branches or pull requests
Using the CustomEvent interface it might be possible to add an event that gets dispatchEvent run every time there is a change.
Example 1:
Example 2:
The text was updated successfully, but these errors were encountered: