diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/log.ts | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -14,7 +14,7 @@ export class Logger<T = HTMLElement> { }, private reverse = false, private timeout = 3000, - private animation_dduration = 1000, + private animation_duration = 1000, ) { } @@ -33,8 +33,8 @@ export class Logger<T = HTMLElement> { el.classList.add("jsh-log-line-disappear") setTimeout(() => { this.element.removeChild(el) - }, this.animation_dduration) - }, this.timeout + this.animation_dduration) + }, this.animation_duration) + }, this.timeout + this.animation_duration) } log_persistent(value: T): () => void { const el = this.add(value) @@ -43,7 +43,7 @@ export class Logger<T = HTMLElement> { el.classList.add("jsh-log-line-disappear") setTimeout(() => { this.element.removeChild(el) - }, this.animation_dduration) + }, this.animation_duration) } } } |