diff --git a/frontend/src/Metamaps/Debug.js b/frontend/src/Metamaps/Debug.js index 0fe5f769..1d1bfe71 100644 --- a/frontend/src/Metamaps/Debug.js +++ b/frontend/src/Metamaps/Debug.js @@ -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