egoist / codepan

Like codepen and jsbin but works offline.
https://codepan.egoist.sh
MIT License
1.18k stars 178 forks source link

Fix bug when passing multiple arguments to log #78

Closed zant closed 4 years ago

zant commented 5 years ago

hey!

really good playground, super nice, i already switch from jsbin to codepan 🥇

i made this PR because i notice that when calling console.log with multiple arguments, the following error appears in the integrated console:

Screen Shot 2019-08-28 at 19 26 35

the error was due to the support of styling logs, i just check if any styling is intended, and if is not, it should return an unstyled text, i also added a blank when joining arguments to have them separated, but i'm not aware of the use case of the previous way

TODO:

please review @egoist @Prozi :)

zant commented 4 years ago

Can you do a follow up please? @Prozi