Skip to content

Commit 6ae1b45

Browse files
authored
Update belt_Debug.ml
1 parent 9cf581a commit 6ae1b45

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jscomp/others/belt_Debug.ml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,12 @@ var formatter = {
147147
}
148148

149149
}
150-
150+
if (typeof window === "undefined"){
151151
global.devtoolsFormatters = [formatter]
152+
}
153+
else {
154+
window.devtoolsFormatters = [formatter]
155+
}
152156
return 0
153157

154158
|};

0 commit comments

Comments
 (0)