mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-16 20:35:09 +00:00
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:
parent
cb970ecdf4
commit
849a6d9f16
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue