I need to update localStorage
when document.cookie
changes. Is there any way to set a listener, overwrite a prototype to act as middleware or some other pattern that would result in the ability to trigger a function on change? I'm trying to avoid something like polling on an interval.
Thanks for any ideas.
Theres no avoiding it, these events simply dont exist, you'll need to poll.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With