Security fixes pass #2
This commit is contained in:
Vendored
+2
-6
@@ -1,10 +1,6 @@
|
||||
export default function isDevelopment() {
|
||||
const config = global.CONFIG;
|
||||
if (process.env.NODE_ENV == "production") {
|
||||
if (process.env.NODE_ENV === "production") {
|
||||
return false;
|
||||
}
|
||||
if (config.development) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return Boolean(global.CONFIG?.development);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user