aboutsummaryrefslogtreecommitdiff
path: root/docker/nginx/sites/www/src/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'docker/nginx/sites/www/src/main.ts')
-rw-r--r--docker/nginx/sites/www/src/main.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/docker/nginx/sites/www/src/main.ts b/docker/nginx/sites/www/src/main.ts
index 043cb94..09e8661 100644
--- a/docker/nginx/sites/www/src/main.ts
+++ b/docker/nginx/sites/www/src/main.ts
@@ -3,7 +3,7 @@ import "./style.css";
class Emotion {
static opposite_map = new Map<Emotion, Emotion>();
- constructor(public name: string) {
+ constructor(public readonly name: string) {
}
get opposite(): Emotion {
@@ -18,9 +18,6 @@ class Emotion {
return this.element.clientHeight;
}
- updateBodyTopPadding(): void {
- }
-
apply() {
localStorage.setItem(emotionKey, this.name);
document.body.dataset.emotion = this.name;
@@ -35,7 +32,6 @@ Emotion.opposite_map.set(angry, happy)
const emotionKey = "emotion";
const savedEmotionName = localStorage.getItem(emotionKey) ?? happy.name;
-document.body.dataset.emotion = savedEmotionName;
for (const emotion of [happy, angry]) {
if (emotion.name == savedEmotionName) {