mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-25 17:10:43 +00:00
wip
This commit is contained in:
parent
9c25c44a8a
commit
130a43f39a
3 changed files with 15 additions and 1 deletions
|
|
@ -3564,3 +3564,4 @@ _room:
|
|||
resolution: "解像度"
|
||||
yourDeviceNotSupported_title: "お使いのデバイスはMisskeyRoomをサポートしていません。"
|
||||
yourDeviceNotSupported_description: "MisskeyRoomを動作させるには、WebGPUをサポートするデバイスが必要です。"
|
||||
failedToInitialize: "初期化に失敗しました"
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -13299,5 +13299,9 @@ export interface Locale extends ILocale {
|
|||
* MisskeyRoomを動作させるには、WebGPUをサポートするデバイスが必要です。
|
||||
*/
|
||||
"yourDeviceNotSupported_description": string;
|
||||
/**
|
||||
* 初期化に失敗しました
|
||||
*/
|
||||
"failedToInitialize": string;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue