[console.js] Add logging method from common.js

This commit is contained in:
Christoph Diehl 2017-04-23 00:16:24 +03:00
parent fa1a194b71
commit a947263c0b

View file

@ -59,7 +59,7 @@ utils.script = {
}, },
safely: function (s) { safely: function (s) {
if (window.debug) { if (window.debug) {
return "try { " + s + " } catch(e) { Logger.JSError(e); }"; return "try { " + s + " } catch(e) { logger.JSError(e); }";
} }
return "try { " + s + " } catch(e) { }"; return "try { " + s + " } catch(e) { }";
}, },