+ 2
How to remove the console?
I've been seeing trending codes but i can't see others fully because of the console thing below.
11 Answers
+ 18
@Burey All of them. I think this is happening because of the new update :(
+ 15
@Burey I think it is about your account. I used Sololearn on another device, and trying to code on it, and this console log just stuck on every web code.
This started to happen to me as well a week ago... Some codes which didn't have the log popped up, now have it and it is really annoying -_-
+ 12
@Burey It is not about the device. I went to snother device, same Sololearn version, but the same problem
+ 8
oh.....if you ever find a way please tell me xD
some libraries (p5.js for example) causes a console log to be activated (i believe it originates from the motion sensors support)
as if now there is no known way to prevent it from happening, except to abstain usage of the code which causes the log to happen (in some cases, that is impossible as it loses too much functionality).
what i do is just leave some empty space in my codes (it sucks but nothing i can do about it)
you can also cannot know in which device some logs would occur (i've seen a code of mine which caused a log for one type of device but didn't in another type)
+ 8
one of the problems is that since recent updates, the console log just show up without actually logging what activated it, so you cannot verify what is the exact cause for it.
@Gami, any specific codes you remember?
+ 8
You can override the console object and/or methods to desactivate user call to them at begin of your code:
var console = {}; // empty object: if alone, call to any console method not redefined will throw an 'Uncaught TypeError: console.xxx is not a function' exception
console.log = function() {}; // any call to console.log() will now do nothing
This don't avoid 'normal' ( built-in errors/logs ) console outputs, but it's more easy to delete all call to log() method without searching each line where the call appear :P
The others methods provided by the 'console' object can be found there:
https://developer.mozilla.org/en-US/docs/Web/API/Console
+ 7
@Gami seriously???
what device are you on?
mine is
samsung galaxy s5
android 6.0.1
latest SoloLearn update as well
+ 5
;_;
+ 4
Update:
mailed sololearn regarding the console and got this reply:
"Our next update will auto-hide the Console if there is no output there."
now just have to wait and see how this will work :)
+ 4
A show/hide button for the console would be more helpful.
+ 4
@seamiki that's close to what i suggested in the mail i sent.
for now we will have to wait and see