From b8917a3c0e4fb1eef3d7211f15064c8653972919 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Ram=C3=ADrez=20Norambuena?= Date: Wed, 18 Jan 2017 13:47:45 -0300 Subject: [PATCH] Hotfix introduced client error on commit 3a8d72d Noticed by @qistoph https://github.com/MichMich/MagicMirror/pull/623#issuecomment-273505208 --- js/module.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/module.js b/js/module.js index b12f6cd4..dfd5f2bc 100644 --- a/js/module.js +++ b/js/module.js @@ -416,6 +416,10 @@ Module.register = function (name, moduleDefinition) { Module.definitions[name] = moduleDefinition; }; -exports._test = { - cmpVersions: cmpVersions +if (typeof exports != "undefined") { // For testing purpose only + // A good a idea move the function cmpversions a helper file. + // It's used into other side. + exports._test = { + cmpVersions: cmpVersions + } }