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.
I'm trying to avoid something like polling on an interval.
– Dulci