Skip to content

Commit bf81049

Browse files
lbogdanCompuIves
authored andcommitted
Fixed console not clearing on console.clear(). (codesandbox#295)
1 parent 43b960b commit bf81049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sandbox/console/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function replaceConsoleMethod(method) {
2727
}
2828

2929
export default function setupConsole() {
30-
['log', 'info', 'warn', 'error', 'debug'].forEach(method =>
30+
['log', 'info', 'warn', 'error', 'debug', 'clear'].forEach(method =>
3131
replaceConsoleMethod(method)
3232
);
3333
}

0 commit comments

Comments
 (0)