diff --git a/src/core/drive/page_view.js b/src/core/drive/page_view.js index fc0e7a8bf..c800c02ad 100644 --- a/src/core/drive/page_view.js +++ b/src/core/drive/page_view.js @@ -55,16 +55,10 @@ export class PageView extends View { return this.snapshotCache.get(location) } - isReplacingSamePage(visit) { - return !visit || (this.lastRenderedLocation.pathname === visit.location.pathname && visit.action === "replace") - } - - isRefreshing(visit) { - return visit && visit.action === "refresh" - } - isMorphable(visit) { - return this.isRefreshing(visit) || this.isReplacingSamePage(visit) + if (!visit) { return true } + + return this.lastRenderedLocation.pathname === visit.location.pathname && (visit.action === "replace" || visit.action === "refresh") } shouldPreserveScrollPosition(visit) {