vaderjs 1.3.3-alpha-30 → 1.3.3-alpha-31

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-30",
5
+ "version": "1.3.3-alpha-31",
6
6
  "bin": {
7
7
  "vader": "./vader.js"
8
8
  },
package/runtime/router.js CHANGED
@@ -170,13 +170,14 @@ class VaderRouter{
170
170
  });
171
171
 
172
172
 
173
- if (!route) {
173
+ if (!route) {
174
174
  route = this.routes.find((errorRoute) => {
175
- if (errorRoute.path === '/404') {
175
+ console.log(errorRoute)
176
+ if (errorRoute.path.includes('/404')){
176
177
  this.error = true;
177
178
  return true;
178
- } else if (!this.error && errorRoute.path !== '/404') {
179
-
179
+ } else if (!this.error && errorRoute.path.includes('/404')){
180
+ window.location.hash = this.basePath
180
181
  }
181
182
  });
182
183