+ 7
Can I remove the annoying console window on the sololearn web playground (output)?
There is this annoying console window on the output window of the sololearn web playground when using my phone. It covers content. Do you also have it? Is there a way to remove it?
13 Respuestas
+ 7
you are not the first to be annoyned by this :/
i emailed sololearn a while ago and been told the next update should hide empty console logs (unsure about server generated logs and how those will be handled)
https://www.sololearn.com/discuss/317824/?ref=app
https://www.sololearn.com/discuss/304101/?ref=app
https://www.sololearn.com/discuss/291731/?ref=app
https://www.sololearn.com/discuss/310791/?ref=app
+ 11
I too have that problem. Just put a <br><br><br> at the end or give a padding bottom to 'body'.
+ 11
@Burey Not for me, for the codes I've checked
+ 10
@Burey Nope, it's gone
+ 7
Hm. My import (2-3m old) was intended to minimize the console's drawbacks, correcting/detecting more than the app (you can even infer the engine's deadlocked). But...it didn't go terribly far and I didn't really push it.
Instead, you can leverage the new default (OFF) state yourself, permanently:
Just include this in your code early -- in <head>:
window.onerror=function(message, source_document, line, column, error_message) {
/* Do stuff with the variables
- Intercepts everything.
- Just ignore line numbers (they may be skewed) if you know the code
- Handle or discard errors however you want; you can probably write a fancier popup than I did.
*/
return true; // false: cancel event bubble
}
+ 7
@Andrew Grider - "fix rather than hide" -- yes, plus:
In production, shown only to devs. Error messages reveal unnecessary/risky data; rarely does anyone (but the dev) need to know exactly what happened. These should stay ON the server; NEVER shipped out the client side...minimizing consumer interaction.
A good example: php.ini..."production setting". Look at all the stuff they hide. Or for apps: Crashlytics; some crashes you never, even, notice. They just get fixed--the pros at work.
+ 6
Thank you guys for the information 😊
+ 6
any new information about the console logs?
still appearing?
[edit]
just checked
and it seemed much better
accelerometer handlers no longer cause console logs!!
also it seems that the keyboard will now open much less frequently in the code editor :)
+ 6
@Jafca
console still there for you?
+ 6
\o/
+ 5
on my device console visible only when I use console.log or have errors
+ 5
do you have latest version of app?
+ 5
@andrew it is easy to say find error . . .
when it throws up error on line 16000 in external lib