diff --git a/src/App.tsx b/src/App.tsx index 923258d..046e245 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -114,10 +114,12 @@ export const PhoneIsland: FC = ({ dataConfig, showAlways = fal const remoteAudioElement: any = store.getState().player.remoteAudio - //initialize i18n + //get output device from localstorage useEffect(() => { if (firstAudioOutputInit && remoteAudioElement) { - const defaultAudioOutputDevice: any = getJSONItem(`phone-island-audio-output-device`)?.deviceId + const defaultAudioOutputDevice: any = getJSONItem( + `phone-island-audio-output-device`, + )?.deviceId eventDispatch('phone-island-audio-output-change', { deviceId: defaultAudioOutputDevice }) setFirstAudioOutputInit(false) }