Skip to content

Commit 0b4729f

Browse files
johan-lejdungshellscape
authored andcommitted
Proposed fix for ./log module not found (#1050)
* Proposed fix for ./log module not found * Fixed code * Replaces spaces with tabs..
1 parent b2cf847 commit 0b4729f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ var onSocketMsg = {
7979
},
8080
"log-level": function(level) {
8181
var hotCtx = require.context("webpack/hot", false, /^\.\/log$/);
82-
if(hotCtx.keys().length > 0) {
82+
var contextKeys = hotCtx.keys();
83+
if(contextKeys.length && contextKeys["./log"]) {
8384
hotCtx("./log").setLogLevel(level);
8485
}
8586
switch(level) {

0 commit comments

Comments
 (0)