1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-06-06 21:34:15 +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

@@ -3564,3 +3564,4 @@ _room:
resolution: "解像度" resolution: "解像度"
yourDeviceNotSupported_title: "お使いのデバイスはMisskeyRoomをサポートしていません。" yourDeviceNotSupported_title: "お使いのデバイスはMisskeyRoomをサポートしていません。"
yourDeviceNotSupported_description: "MisskeyRoomを動作させるには、WebGPUをサポートするデバイスが必要です。" yourDeviceNotSupported_description: "MisskeyRoomを動作させるには、WebGPUをサポートするデバイスが必要です。"
failedToInitialize: "初期化に失敗しました"

View File

@@ -285,7 +285,16 @@ onMounted(async () => {
return; 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(); canvas.value!.focus();

View File

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