location-bar
location-bar copied to clipboard
A microlib for managing browser's location bar via pushState and hashChange APIs. This lib makes it easy to listen to URL changes and update the URL.
If you add a query string with `update` a trailing slash is added to the url: locationBar.updated('?foo=bar') // https://myurl.com/path/?foo=bar This happens whether there is or isn't a trailing slash before...
Hi, I just noticed that the hash character is not retained. `location_bar.update('#speed');` will update the url like this: ``` js [mysite]/speed // instead of [mysite]/#speed ```
It would be great a version withput amd, but I guess this library is not maintained anymore