modularload
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -299,2 +299,6 @@ 'use strict'; | ||
}).then(function (data) { | ||
if (push) { | ||
history.pushState(_this3.transition, null, href); | ||
} | ||
var parser = new DOMParser(); | ||
@@ -326,8 +330,4 @@ _this3.data = parser.parseFromString(data, 'text/html'); | ||
})["catch"](function (err) { | ||
console.log(err); | ||
window.location = href; | ||
}); | ||
if (push) { | ||
history.pushState(this.transition, null, href); | ||
} | ||
} | ||
@@ -334,0 +334,0 @@ }, { |
@@ -297,2 +297,6 @@ function _classCallCheck(instance, Constructor) { | ||
}).then(function (data) { | ||
if (push) { | ||
history.pushState(_this3.transition, null, href); | ||
} | ||
var parser = new DOMParser(); | ||
@@ -324,8 +328,4 @@ _this3.data = parser.parseFromString(data, 'text/html'); | ||
})["catch"](function (err) { | ||
console.log(err); | ||
window.location = href; | ||
}); | ||
if (push) { | ||
history.pushState(this.transition, null, href); | ||
} | ||
} | ||
@@ -332,0 +332,0 @@ }, { |
{ | ||
"name": "modularload", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "Dead simple page transitions and lazy loading.", | ||
@@ -5,0 +5,0 @@ "repository": "modularorg/modularload", |
@@ -216,2 +216,6 @@ export default class { | ||
.then(data => { | ||
if (push) { | ||
history.pushState(this.transition, null, href); | ||
} | ||
const parser = new DOMParser(); | ||
@@ -241,8 +245,4 @@ this.data = parser.parseFromString(data, 'text/html'); | ||
.catch(err => { | ||
console.log(err); | ||
window.location = href; | ||
}) | ||
if (push) { | ||
history.pushState(this.transition, null, href); | ||
} | ||
} | ||
@@ -249,0 +249,0 @@ |
48065