summaryrefslogtreecommitdiff
path: root/packages/frontend/src/scripts/snowfall-effect.ts
diff options
context:
space:
mode:
authorLeah <kevinlukej@gmail.com>2024-03-04 18:47:47 +0000
committerAmelia Yukii <amelia.yukii@shourai.de>2024-03-04 18:47:47 +0000
commiteba0c2cc61512db22109e2f15604eb65f5b7d2f2 (patch)
tree97c40e3e90f68d0a3613adb7e1660921a34b758a /packages/frontend/src/scripts/snowfall-effect.ts
parentmerge: put back the readme (!447) (diff)
downloadsharkey-eba0c2cc61512db22109e2f15604eb65f5b7d2f2.tar.gz
sharkey-eba0c2cc61512db22109e2f15604eb65f5b7d2f2.tar.bz2
sharkey-eba0c2cc61512db22109e2f15604eb65f5b7d2f2.zip
Fixed startup crash with seasonal effects
Diffstat (limited to 'packages/frontend/src/scripts/snowfall-effect.ts')
-rw-r--r--packages/frontend/src/scripts/snowfall-effect.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/frontend/src/scripts/snowfall-effect.ts b/packages/frontend/src/scripts/snowfall-effect.ts
index 11fcaa0716..d88bdb6660 100644
--- a/packages/frontend/src/scripts/snowfall-effect.ts
+++ b/packages/frontend/src/scripts/snowfall-effect.ts
@@ -155,7 +155,9 @@ export class SnowfallEffect {
max: 0.125,
easing: 0.0005,
};
-
+ /**
+ * @throws {Error} - Thrown when it fails to get WebGL context for the canvas
+ */
constructor(options: {
sakura?: boolean;
}) {