Skip to content

Instantly share code, notes, and snippets.

@JonAbrams
Created June 7, 2012 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonAbrams/2889174 to your computer and use it in GitHub Desktop.
Save JonAbrams/2889174 to your computer and use it in GitHub Desktop.
$(document).ready(function () {
if (typeof(history.replaceState) !== "undefined") {
history.replaceState({
old_text: old_text.val(),
new_text: new_text.val(),
slug: location.pathname.replace("/", "")
}, null, null);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment