1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

Replace contentWindow location will not interefere on parent window history

This commit is contained in:
Natã Miccael Barbosa 2014-04-30 00:56:45 -04:00
parent 82b4835c59
commit a24f7adda8

View file

@ -31,7 +31,7 @@ EPUBJS.Render.Iframe.prototype.load = function(url){
var render = this,
deferred = new RSVP.defer();
this.iframe.src = url;
this.iframe.contentWindow.location.replace(url);
// Reset the scroll position
render.leftPos = 0;