if(process.browser){
    //Webpack code
    if(!window.fetch){
        require('whatwg-fetch');
    }
    module.exports = require('./noco-loader!./pack.coffee');
}else {
    //Electron code
    var req = eval('require');
    req('coffee-script/register');
    req('./engine/node_fetch_file.coffee');
    module.exports = req('./pack.coffee');
}

if ((typeof window === "undefined" || window === null) && typeof global !== "undefined") {
    global.window = global;
}
if(process.browser || process.android){
    //Webpack code
    if(!window.fetch){
        require('whatwg-fetch');
    }
    module.exports = require('./noco-loader!./pack.coffee');
}else {
    //Electron code
    var req = eval('require');
    req('coffee-script/register');
    req('./engine/node_fetch_file.coffee');
    module.exports = req('./pack.coffee');
}

Add 'window' as global if it doesn't exist. Detect webpack when using android.
Add 'window' as global if it doesn't exist. Detect webpack when using android.
