Skip to content

Commit 29a7799

Browse files
authored
change isReleaseBuild to isDevMode
1 parent 3d04ef5 commit 29a7799

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/constants/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ export const isPre = () => IS_PRE
2525
let IS_RC: boolean
2626
export const isRc = () => IS_RC
2727

28-
export const isReleaseBuild = () => IS_ALPHA || IS_BETA || IS_PRE || IS_RC
28+
// checks if the build should show debugging tools
29+
export const isDevMode = () => !IS_PRODUCTION || (IS_ALPHA || IS_BETA || IS_PRE || IS_RC)
2930

3031
export const setVersionInfo = (versionStr: string) => {
3132
let [version, buildNum] = versionStr.split('+')

0 commit comments

Comments
 (0)