Remove obsolete IE9 safe guard

Change-Id: I350cc395cb0ab673699cda03f6da19c9470ee7bb
This commit is contained in:
thiemowmde 2023-08-25 16:19:14 +02:00
parent 040f6c28ae
commit 9f2f774cc4

View file

@ -100,14 +100,11 @@ $.extend( DiffPage.prototype, {
* @param {SliderView} sliderView
*/
replaceState: function ( diff, oldid, sliderView ) {
// IE9 does not have history.replaceState()
if ( typeof history.replaceState === 'function' ) {
history.replaceState(
this.getStateObject( diff, oldid, sliderView ),
$( document ).find( 'title' ).text(),
this.getStateUrl( diff, oldid )
);
}
},
/**
@ -118,14 +115,11 @@ $.extend( DiffPage.prototype, {
* @param {SliderView} sliderView
*/
pushState: function ( diff, oldid, sliderView ) {
// IE9 does not have history.pushState()
if ( typeof history.pushState === 'function' ) {
history.pushState(
this.getStateObject( diff, oldid, sliderView ),
$( document ).find( 'title' ).text(),
this.getStateUrl( diff, oldid )
);
}
},
/**