Remove all console.log in this | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

Remove all console.log in this

I was testing WebVR using Mozilla's Aframe. Tried a simple one but when I run it, information about the script comes in the console .So I tried this :- console.log = function() {} To remove all the console.log but now new errors come , can someone remove all this https://code.sololearn.com/WIdVXzlq5GiC/?ref=app ★ If you want to test the code on mobile , tilt your phone left , right,up and down ,the sphere moves . Some phones may not support it

26th Sep 2017, 10:07 AM
Nikhil
Nikhil - avatar
3 Answers
+ 6
@Andrew :- Should I add whole script in the try..catch .?😂
26th Sep 2017, 11:21 AM
Nikhil
Nikhil - avatar
+ 5
@Nikky Amresh : working , thank you!
27th Sep 2017, 9:38 AM
Nikhil
Nikhil - avatar
+ 3
I dont think there is way from coding to disable SL console.log message. Contact SL, to set an option to disable console.log messages. Btw it's a nice code.
26th Sep 2017, 10:15 AM
Calviղ
Calviղ - avatar