Revert no-longer-needed fix for MS Edge browser

Bug with history.pushState in Edge fixed in Win10 build 10240;
Dave Storey is asking us to remove the workaround to keep our
code pure and them honest ;)

Reverts I6ea4d367

Bug: T104381
Change-Id: I5f53416dda7c31662330dc5ec67e1bbea55dace7
This commit is contained in:
Brion Vibber 2015-07-15 17:52:46 -05:00
parent cb970ecdf4
commit 849a6d9f16

View file

@ -469,12 +469,7 @@
hash = window.location.href.replace( /#.*$/, '' );
}
try {
window.history.pushState( null, title, hash );
} catch ( ex ) {
// Workaround for Edge bug -- https://phabricator.wikimedia.org/T104381
window.history.pushState( null, title, hash + '#' );
}
} else {
// Since we voluntarily changed the hash, we don't want MMVB.hash (which will trigger on hashchange event) to treat it
this.skipNextHashHandling = true;