some browers (Firefox for example) have no pushState, so disable it for those for now
This commit is contained in:
parent
852be182f5
commit
cadcc3e7c3
1 changed files with 4 additions and 1 deletions
|
|
@ -117,7 +117,10 @@ $(document).ready(function(){
|
|||
|
||||
|
||||
// set url
|
||||
history.pushState(null, document.title, newURL);
|
||||
// some browsers (Firefox for example) don't support pushState
|
||||
if (typeof(history.pushState) == 'function') {
|
||||
history.pushState(null, document.title, newURL);
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url : newURL,
|
||||
|
|
|
|||
Loading…
Reference in a new issue