scroll-behavior-polyfill
scroll-behavior-polyfill copied to clipboard
fix(bug): hash may contain a string that is not a selector
Closes: https://github.com/wessberg/scroll-behavior-polyfill/issues/21
Following up from the GHI I have gone ahead and went with the try/catch route. If you'd prefer a regex that checks the hash to see if it looks like an ID I'd be happy to adjust