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
listen(chrome.storage.onChanged, changes => {console.log}, {signal})
would replace
function listener(changes) { console.log(changes); } if (!signal.aborted) { chrome.storage.onChanged.addListener(changes); signal.addEventListener('abort', () => { chrome.storage.onChanged.removeListener(changes); }) }
Most of the logic is already in https://github.com/fregante/webext-events/blob/main/source/one-event.ts, which can then use this listen function internally and pass its own signal
signal
The text was updated successfully, but these errors were encountered:
addListener
Successfully merging a pull request may close this issue.
would replace
Most of the logic is already in https://github.com/fregante/webext-events/blob/main/source/one-event.ts, which can then use this listen function internally and pass its own
signal
The text was updated successfully, but these errors were encountered: