fix(frontend): サウンドのフォールバックが効かなくなっていた問題を修正 (#16012)

This commit is contained in:
かっこかり 2025-05-10 12:34:59 +09:00 committed by GitHub
parent 0a0d42bb48
commit 0133dbfe7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ export function playMisskeySfx(operationType: OperationType) {
playMisskeySfxFile(sound).then((succeed) => { playMisskeySfxFile(sound).then((succeed) => {
if (!succeed && sound.type === '_driveFile_') { if (!succeed && sound.type === '_driveFile_') {
// ドライブファイルが存在しない場合はデフォルトのサウンドを再生する // ドライブファイルが存在しない場合はデフォルトのサウンドを再生する
const soundName = PREF_DEF[`sound_${operationType}`].default.type as Exclude<SoundType, '_driveFile_'>; const soundName = PREF_DEF[`sound.on.${operationType}`].default.type as Exclude<SoundType, '_driveFile_'>;
if (_DEV_) console.log(`Failed to play sound: ${sound.fileUrl}, so play default sound: ${soundName}`); if (_DEV_) console.log(`Failed to play sound: ${sound.fileUrl}, so play default sound: ${soundName}`);
playMisskeySfxFileInternal({ playMisskeySfxFileInternal({
type: soundName, type: soundName,