Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowwzw committed Mar 26, 2017
1 parent a8f401e commit 2936e72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lite-dev-server",
"version": "1.5.31",
"version": "1.5.32",
"description": "This is http file server for develpment. This server supports livereload function and proxy function for your api server.",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
console.log("lite-dev-server - The WebSocket connection is established successfully");
ws.onmessage = function (event) {
if (event.data === "reload page") {
console.log(`lite-dev-server - Change detected!\nPage will reload after ${reloadDelay} ms!`);
setTimeout(function () {
console.log("lite-dev-server - Change detected! Page will reload!");
location.reload(true);
}, reloadDelay);
}
Expand Down

0 comments on commit 2936e72

Please sign in to comment.