+ 5

How do you get rid of the console popup?

When you run a JavaScript file there's the little console menu at the bottom. How do you get rid of this or go to a more "fullscreen"-like mode

12th Mar 2017, 1:27 AM
Noah Wise
Noah Wise - avatar
3 Answers
+ 9
i assume the console menu in your snake game originates from some usage of the p5.js library (probably some method in the library causes it) unfortunetaly, since recent sololearn update, a lot of console messages are not being printed, and instead the nasty box appears, so there is no way to tell (before the update, there would be a message stating what is the source of the console log) you could go the extra mile and install an older version of sololearn to find the console log (i think it was removed 2 months ago or something like that, or just get one of the earliest versions) so in short, you cannot get rid of it until you find causing it. and if you find the cause and won't be able to disable it (assuming it originates from p5.js) then your other option is to not use p5.js and implement everything yourself (don't worry, it ain't that complicated)
12th Mar 2017, 5:03 PM
Burey
Burey - avatar
+ 8
update: i downgraded version and it appears that p5.js supplies device motion detection in its API and that is (for the very least) the cause for the console log appearance (i have some codes of my own which uses devicemotion handlers and it is the same case in there as well) so there you have it the warning it says by the way is that the ondevicemotion event is unsecured and blah blah, yada yada yada.....
12th Mar 2017, 8:03 PM
Burey
Burey - avatar
0
get and/or post in php
12th Mar 2017, 4:17 AM
Rafael