summaryrefslogtreecommitdiff
path: root/packages/frontend/src/scripts
diff options
context:
space:
mode:
authorかっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>2024-03-17 20:33:33 +0900
committerGitHub <noreply@github.com>2024-03-17 20:33:33 +0900
commitb65203c9f852a29a3a6e7ce81c6761e9ac228bf3 (patch)
tree02895c65f35acde60e1fd52e37c23c58e0fd9946 /packages/frontend/src/scripts
parentfeat: send heartbeat right after visibility changed to 'visible' (#13581) (diff)
downloadmisskey-b65203c9f852a29a3a6e7ce81c6761e9ac228bf3.tar.gz
misskey-b65203c9f852a29a3a6e7ce81c6761e9ac228bf3.tar.bz2
misskey-b65203c9f852a29a3a6e7ce81c6761e9ac228bf3.zip
fix(frontend): WebGL2コンテキストの初期化に失敗するとMisskeyが起動できなくなる問題を修正 (#13587)
* Fixed startup crash with seasonal effects (cherry picked from commit eba0c2cc61512db22109e2f15604eb65f5b7d2f2) * Update Changelog * Update Changelog --------- Co-authored-by: Leah <kevinlukej@gmail.com>
Diffstat (limited to 'packages/frontend/src/scripts')
-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;
}) {