commit 8b655d36070ef6a9ba1c69327204ca78b584312b
parent 204d1b91771cb3a196807cf7176d8b15960efc87
Author: Vladimir Kutepov <frenzzy.man@gmail.com>
Date: Tue, 4 Oct 2016 23:23:49 +0400
Use location.reload() when client-side routing error occur (#900)
Diffstat:
4 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/.gitattributes b/.gitattributes
@@ -7,13 +7,13 @@
# (this is required in order to prevent newline related issues like,
# for example, after the build script is run)
.* text eol=lf
-*.css text eol=lf
*.html text eol=lf
-*.jade text eol=lf
-*.js text eol=lf
-*.json text eol=lf
+*.css text eol=lf
*.less text eol=lf
*.scss text eol=lf
+*.sss text eol=lf
+*.js text eol=lf
+*.json text eol=lf
*.md text eol=lf
*.sh text eol=lf
*.txt text eol=lf
diff --git a/docs/recipes/how-to-use-sass.md b/docs/recipes/how-to-use-sass.md
@@ -18,7 +18,7 @@ $ npm install sass-loader --save-dev
### Step 2
-Update [`webpack.config.js`](../../webpack.config.js) file to use `sass-loader` for `.scss` files:
+Update [`webpack.config.js`](../../tools/webpack.config.js) file to use `sass-loader` for `.scss` files:
```js
const config = {
diff --git a/package.json b/package.json
@@ -157,8 +157,7 @@
true,
{
"ignorePseudoClasses": [
- "global",
- "local"
+ "global"
]
}
]
diff --git a/src/client.js b/src/client.js
@@ -152,7 +152,7 @@ async function onLocationChange(location) {
// Avoid broken navigation in production mode by a full page reload on error
console.error(err); // eslint-disable-line no-console
- window.location.href = createPath(location);
+ window.location.reload();
}
}