We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f115d56 commit a71f444Copy full SHA for a71f444
src/utils.js
@@ -4,6 +4,7 @@ export const draf = (cb) => requestAnimationFrame(() => requestAnimationFrame(cb
4
5
export const defaultOptions = {
6
auto: true,
7
+ allowConsoleClears: true,
8
clearConsoleOnUpdate: false,
9
delay: 500,
10
config: {
@@ -31,7 +32,9 @@ export const defaultOptions = {
31
32
export function clear (forceClear = false, options) {
33
resetCache()
34
if (forceClear || options.clearConsoleOnUpdate) {
- console.clear()
35
resetLastNotification()
36
+ if (options.allowConsoleClears) {
37
+ console.clear()
38
+ }
39
}
40
0 commit comments