Skip to content

Commit

Permalink
fix: client.js expecting wrong reload message
Browse files Browse the repository at this point in the history
  • Loading branch information
Shakeskeyboarde committed Jun 13, 2024
1 parent 435a030 commit 808f726
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": "vite-live-preview",
"version": "0.1.4",
"version": "0.1.5",
"description": "Vite preview watch mode.",
"license": "ISC",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ socket.addEventListener('message', (event) => {
try {
const message = JSON.parse(event.data);

if (message?.type === 'full-reload') {
if (message?.type === 'page-reload') {
window.location.reload();
}
}
Expand Down

0 comments on commit 808f726

Please sign in to comment.