Created
May 21, 2015 07:11
-
-
Save uiur/0aacc23ab279a00493d3 to your computer and use it in GitHub Desktop.
assign history.state
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function assign (object) { | |
history.replaceState( | |
Object.assign(history.state, object), | |
document.title | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment