Release v0.4.0 #110

Merged
lamacchinadesiderante merged 50 commits from develop into main 2024-05-27 19:05:12 +00:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 248d71a9dc - Show all commits

View File

@ -2,7 +2,9 @@ import { Platforms } from "@/meta/settings";
export const getEnabledPlatforms = ():string[] => {
if (process.env.DISABLED_PLATFORMS) {
const disabledPlatforms: string[] = String(process.env.DISABLED_PLATFORMS).replace(/\s/g, "").split(',')
const regex = /[ '\"]/g;
const disabledPlatforms: string[] = String(process.env.DISABLED_PLATFORMS).replace(regex, '').split(',')
return [...Object.values(Platforms)].filter(p => !disabledPlatforms.includes(p))
} else {