function isDevOrSandpit () {
    var hostname = window.location.hostname;
    var env = {};

    if(hostname.indexOf('develop') > -1) {
        env.name = 'develop'
    }

    if(hostname.indexOf('sandpit') > -1) {
        env.name = 'sandpit'
    }

    // if((hostname.indexOf('127') > -1) || (hostname.indexOf('localhost'))) {
    //     env.name = 'localhost'
    // }

    return env;
}

function isDevOrSandpit () {
    var hostname = window.location.hostname;
    var env = {};

    if(hostname.indexOf('develop') > -1) {
        env.name = 'develop'
    }

    if(hostname.indexOf('sandpit') > -1) {
        env.name = 'sandpit'
    }

    // if((hostname.indexOf('127') > -1) || (hostname.indexOf('localhost')) > -1) {
    //     env.name = 'localhost'
    // }

    return env;
}

Check localhost domain to set env notification
Check localhost domain to set env notification
