javascript - Internet Explorer throwing SecurityError when I call window.history.pushState() -


i getting "securityerror" thrown when call history api in internet explorer , won't continue running.

here code:

if(window.history.pushstate) {         window.history.pushstate({name: 'initial'}, 'initial', ''); } 

that right breaks , can't figure out how around it, internet explorer 10+ supports history api.

any appreciated.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -