if $mate.environmentType == "browser"
    global.$mate = $mate
else if $mate.environmentType == "node"
    module.exports = $mate
else
    throw new Error()

if $mate.environmentType == "browser"
    window.$mate = $mate
else if $mate.environmentType == "node"
    module.exports = $mate
else
    throw new Error()

Fix a browser global bug.
Fix a browser global bug.
