Skip to content

Commit

Permalink
Merge pull request #1120 from rommapp/hotfix-detect-ruffleable-platform
Browse files Browse the repository at this point in the history
Fix detecting if platform is flash games
  • Loading branch information
gantoine authored Aug 26, 2024
2 parents 6c158c5 + c2e5a66 commit bff90fe
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 bff90fe

Please sign in to comment.