mirror of
https://github.com/tooot-app/app
synced 2025-02-15 11:20:48 +01:00
Merge branch 'main' into candidate
This commit is contained in:
commit
886b6d6cf7
@ -36,14 +36,14 @@ const mapEnvironment = <T = unknown>({
|
|||||||
|
|
||||||
const isDevelopment =
|
const isDevelopment =
|
||||||
__DEV__ ||
|
__DEV__ ||
|
||||||
['development'].some(channel => Updates.channel === channel)
|
['development'].some(channel => (Updates.channel || Updates.releaseChannel) === channel)
|
||||||
|
|
||||||
const isCandidate = ['candidate'].some(channel =>
|
const isCandidate = ['candidate'].some(channel =>
|
||||||
Updates.channel === channel
|
(Updates.channel || Updates.releaseChannel) === channel
|
||||||
)
|
)
|
||||||
|
|
||||||
const isRelease = ['release'].some(channel =>
|
const isRelease = ['release'].some(channel =>
|
||||||
Updates.channel === channel
|
(Updates.channel || Updates.releaseChannel) === channel
|
||||||
)
|
)
|
||||||
|
|
||||||
export { mapEnvironment, isDevelopment, isCandidate, isRelease }
|
export { mapEnvironment, isDevelopment, isCandidate, isRelease }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user