mirror of https://github.com/tooot-app/app
Compare commits
2 Commits
aba8a38329
...
886b6d6cf7
Author | SHA1 | Date |
---|---|---|
xmflsct | 886b6d6cf7 | |
xmflsct | 1620963863 |
|
@ -36,14 +36,14 @@ const mapEnvironment = <T = unknown>({
|
|||
|
||||
const isDevelopment =
|
||||
__DEV__ ||
|
||||
['development'].some(channel => Updates.channel === channel)
|
||||
['development'].some(channel => (Updates.channel || Updates.releaseChannel) === channel)
|
||||
|
||||
const isCandidate = ['candidate'].some(channel =>
|
||||
Updates.channel === channel
|
||||
(Updates.channel || Updates.releaseChannel) === channel
|
||||
)
|
||||
|
||||
const isRelease = ['release'].some(channel =>
|
||||
Updates.channel === channel
|
||||
(Updates.channel || Updates.releaseChannel) === channel
|
||||
)
|
||||
|
||||
export { mapEnvironment, isDevelopment, isCandidate, isRelease }
|
||||
|
|
Loading…
Reference in New Issue