Skip to content

Commit

Permalink
minor comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyco97 authored and edospadoni committed Feb 23, 2024
1 parent e9359e2 commit ef2e6e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,12 @@ export const PhoneIsland: FC<PhoneIslandProps> = ({ 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)
}
Expand Down

0 comments on commit ef2e6e5

Please sign in to comment.