1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-13 22:15:41 +02:00
This commit is contained in:
syuilo
2026-04-27 17:02:43 +09:00
parent 9c25c44a8a
commit 130a43f39a
3 changed files with 15 additions and 1 deletions

View File

@@ -285,7 +285,16 @@ onMounted(async () => {
return;
}
controller.init(canvas.value!);
try {
await controller.init(canvas.value!);
} catch (err) {
os.alert({
type: 'error',
title: i18n.ts._room.failedToInitialize,
text: (err instanceof Error ? err.message : String(err)),
});
return;
}
canvas.value!.focus();

View File

@@ -13299,5 +13299,9 @@ export interface Locale extends ILocale {
* MisskeyRoomを動作させるには、WebGPUをサポートするデバイスが必要です。
*/
"yourDeviceNotSupported_description": string;
/**
* 初期化に失敗しました
*/
"failedToInitialize": string;
};
}