diff --git a/gui.js b/gui.js index 45650ea..683ce73 100644 --- a/gui.js +++ b/gui.js @@ -77,7 +77,9 @@ var GUI = new function() { }; var error = function(str) { - console.error("[GUI ERROR] " + str); + if (typeof console.log == 'function') { + console.error("[GUI ERROR] " + str); + } } -}; \ No newline at end of file +};