fix(frontend): サウンドのフォールバックが効かなくなっていた問題を修正 (#16012)
This commit is contained in:
parent
0a0d42bb48
commit
0133dbfe7e
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue