2 ms·
`getOverlappingSubreddits()` uses `history.pushState()`. To the devs: please use `replaceState()` instead. https://developer.mozilla.org/en-US/docs/Web/API/His
by lelandfe 5y ago
`getOverlappingSubreddits()` uses `history.pushState()`.
To the devs: please use `replaceState()` instead. https://developer.mozilla.org/en-US/docs/Web/API/History_API/Working_with_the_History_API https://developer.mozilla.org/en-US/docs/Web/API/History_API...
...But also consider why you need to manipulate history when the link is visited directly. I'd imagine that's a side effect that should be extracted from that function.