From ba3d5f07ddf6b357471dc67d5d816ec4bb3e38d1 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Sat, 21 Jan 2017 13:09:26 -0500 Subject: [PATCH] try to fix metamaps.debug --- frontend/src/Metamaps/Debug.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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