Skip to content

Commit

Permalink
Fix detecting if platform is flash games
Browse files Browse the repository at this point in the history
  • Loading branch information
gantoine committed Aug 26, 2024
1 parent 6c158c5 commit c2e5a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,5 +350,5 @@ export function isEJSEmulationSupported(platformSlug: string) {
}

export function isRuffleEmulationSupported(platformSlug: string) {
return platformSlug.toLowerCase() in ["flash", "browser"];
return ["flash", "browser"].includes(platformSlug.toLowerCase());
}

0 comments on commit c2e5a66

Please sign in to comment.