Skip to content

script.environment

This function is used to return the environment settings of the MODLR instance, whether production, or devlopment.

js
script.environment()

Example

js
if(script.environment() == 'production') {
    // do something only in production environment.
}