try to fix metamaps.debug

This commit is contained in:
Devin Howard 2017-01-21 13:09:26 -05:00
parent d47d7e50e7
commit ba3d5f07dd

View file

@ -1,6 +1,9 @@
const Debug = (arg = window.Metamaps) => {
const Debug = function(arg = window.Metamaps) => {
if (arg === undefined && typeof window !== 'undefined') arg = window.Metamaps
console.debug(arg)
console.debug(`Metamaps Version: ${arg.VERSION}`)
console.debug(`Metamaps Version: ${arg.ServerData.VERSION}`)
console.debug(`Build: ${arg.ServerData.BUILD}`)
console.debug(`Last Updated: ${arg.ServerData.LAST_UPDATED}`)
}
export default Debug