Skip to content

Commit

Permalink
fix(expo-plugin): adding bg mode if none exist yet (#4126)
Browse files Browse the repository at this point in the history
  • Loading branch information
blazlew authored Aug 31, 2024
1 parent 703ed43 commit 451806c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expo-plugins/withBackgroundAudio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const withBackgroundAudio: ConfigPlugin<boolean> = (

if (enableBackgroundAudio) {
if (!modes.includes('audio')) {
modes.push('audio');
config.modResults.UIBackgroundModes = [...modes, 'audio'];
}
} else {
config.modResults.UIBackgroundModes = modes.filter(
Expand Down

0 comments on commit 451806c

Please sign in to comment.