Skip to content

Commit ed07c65

Browse files
committed
Prevent reload on compiler warning or errors
Ref #209
1 parent beaef81 commit ed07c65

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

client/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,11 @@ var onSocketMsg = {
7171
log("info", "[WDS] Warnings while compiling.");
7272
for(var i = 0; i < warnings.length; i++)
7373
console.warn(stripAnsi(warnings[i]));
74-
if(initial) return initial = false;
75-
reloadApp();
7674
},
7775
errors: function(errors) {
7876
log("info", "[WDS] Errors while compiling.");
7977
for(var i = 0; i < errors.length; i++)
8078
console.error(stripAnsi(errors[i]));
81-
if(initial) return initial = false;
82-
reloadApp();
8379
},
8480
close: function() {
8581
log("error", "[WDS] Disconnected!");

0 commit comments

Comments
 (0)