scroll-frame.js
function(e) {
      if (location.href != prevHref) return;
      wrapper.removeChild(iframe);
      document.title = prevTitle;
      body.removeChild(wrapper);
      body.setAttribute('style',
        body.getAttribute('style').replace('overflow: hidden;', ''));
      removeEventListener('popstate', onPopState);
    }
function(e) {
      if (location.href != prevHref) return;
      wrapper.removeChild(iframe);
      document.title = prevTitle;
      body.removeChild(wrapper);
      body.setAttribute('style',
        body.getAttribute('style').replace('overflow: hidden;', ''));
      removeEventListener('popstate', onPopState);
    }
function ( e ) { if ( location . href != prevHref ) return ; wrapper . removeChild ( iframe ) ; document . title = prevTitle ; body . removeChild ( wrapper ) ; body . setAttribute ( 'style' , body . getAttribute ( 'style' ) . replace ( 'overflow: hidden;' , '' ) ) ; removeEventListener ( 'popstate' , onPopState ) ; }
On back-button remove the wrapper
On back - button remove the wrapper