Skip to content

Commit

Permalink
fix: by passed scss updates in socket connector to only update once c…
Browse files Browse the repository at this point in the history
…ss has recompiled
  • Loading branch information
jairmilanes committed Nov 4, 2022
1 parent 8ba15b7 commit 799e29e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/client/scripts/socket-connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ if ("WebSocket" in window) {
return window.close();
}

if (data.type === "scss") {
return;
}

if (data.type === "css") {
return refreshStylesheets(data.file);
}
Expand Down

0 comments on commit 799e29e

Please sign in to comment.