aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-10-22 15:28:32 +0200
committermetamuffin <metamuffin@disroot.org>2023-10-22 15:28:32 +0200
commit2d36b0762459b8edfc1529827d0c15447edd2669 (patch)
treea0ddf32de8e2cef4b79864b6acb643943ef274c2
parentbd8b233316820cd35178085ef132f82279be0504 (diff)
downloadjshelper-2d36b0762459b8edfc1529827d0c15447edd2669.tar
jshelper-2d36b0762459b8edfc1529827d0c15447edd2669.tar.bz2
jshelper-2d36b0762459b8edfc1529827d0c15447edd2669.tar.zst
typo
-rw-r--r--src/log.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/log.ts b/src/log.ts
index e99004e..3916520 100644
--- a/src/log.ts
+++ b/src/log.ts
@@ -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)
}
}
}