Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update demo URL with pushState() (video-dev#4327)
* Update demo URL with pushState() That way people won't have to remember to copy the permalink. * Apply suggestions from code review Co-authored-by: Tom Jenkinson <[email protected]> * Add simple first load protection We can't just check if we're on baseURL, because then it'd never activate. I don't immediately see a better method, give or take perhaps where you set the variables. * Change firstLoad as per review * Fix comparison (window.location is a Location object) * use location.href Co-authored-by: Tom Jenkinson <[email protected]>
- Loading branch information