[Idea] Make ROP code check env
ROP code for example can be replaced with:
For logging, add a debugLog(...params) function and use that:
function debugLog(...params){
if (!process.env.PRODUCTION) console.log(...params)
}
For others, use an if statement:
if (!process.env.PRODUCTION) /*debug code*/
And set the env variable on production.
This is a really good idea, this would be super helpful.
This is a really good idea, this would be super helpful.
Yeah. But if the rewrite works out then this would not be needed.
At the moment, I don't have enough time to dedicate to the rewrite. However, @B294 is helping fix some issues in the backend of this repository and I'm rewriting the frontend with Web Components, so essentially this will become Modchat 1.4 in a few weeks.