From 9f2f774cc49a001a99c4aae66a8cd3870049cfb7 Mon Sep 17 00:00:00 2001 From: thiemowmde Date: Fri, 25 Aug 2023 16:19:14 +0200 Subject: [PATCH] Remove obsolete IE9 safe guard Change-Id: I350cc395cb0ab673699cda03f6da19c9470ee7bb --- modules/ext.RevisionSlider.DiffPage.js | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/modules/ext.RevisionSlider.DiffPage.js b/modules/ext.RevisionSlider.DiffPage.js index 4a195146..8573c246 100644 --- a/modules/ext.RevisionSlider.DiffPage.js +++ b/modules/ext.RevisionSlider.DiffPage.js @@ -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 ) - ); - } + 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 ) - ); - } + history.pushState( + this.getStateObject( diff, oldid, sliderView ), + $( document ).find( 'title' ).text(), + this.getStateUrl( diff, oldid ) + ); }, /**