Disable console warning and errors

07 June 2017 14:55
Hi Guys,

Is there a way to disable Blend4Web console log warnings and errors? I would like to hide them for the production website.

08 June 2017 12:51

There's a way to do it, although it's a hack. You can add this snippet at the top of your application script:

var m_print = require("print"); = function(){};
m_print.log = function(){};
m_print.log_raw = function(){};
m_print.warn = function(){};
m_print.error = function(){};
m_print.export_warn = function(){};
m_print.export_error = function(){};
08 June 2017 13:51
THank you very much Ivan!
Please register or log in to leave a reply.