This commit is contained in:
syuilo 2026-04-27 17:02:43 +09:00
commit 130a43f39a
3 changed files with 15 additions and 1 deletions

View file

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

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;
};
}