vaderjs 1.3.3-alpha-135 → 1.3.3-alpha-137

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "vaderjs",
3
3
  "description": "A Reactive library aimed to helping you build reactive applications inspired by react.js",
4
4
  "module": "vader.js",
5
- "version": "1.3.3-alpha-135",
5
+ "version": "1.3.3-alpha-137",
6
6
  "bin": {
7
7
  "vader": "./vader.js"
8
8
  },
package/runtime/router.js CHANGED
@@ -203,7 +203,8 @@ class VaderRouter{
203
203
  if (!route) {
204
204
  route = window.routes.find((errorRoute) => {
205
205
  if (errorRoute.url.includes('/404') && !this.error && !window.devMode) {
206
- console.error(`Route ${hash} not found`);
206
+ window.history.pushState({}, '', '/404');
207
+ window.dispatchEvent(new Event('popstate'));
207
208
  this.error = true;
208
209
  return false
209
210