js-visualizer-9000-client icon indicating copy to clipboard operation
js-visualizer-9000-client copied to clipboard

UI breaking while pasting a code snippet

Open Suraj-bhan opened this issue 1 year ago • 1 comments

I am pasting this code in text box and the ui is breaking.

console.log("3…"); setTimeout(() => { console.log("2…"); setTimeout(() => { console.log("1…"); setTimeout(() => { console.log("Happy New Year!!"); }, 1000); }, 1000); }, 1000);

This is error I am getting. image

When I pasted the same on another compiler, It worked completely fine. image

Suraj-bhan avatar Jul 02 '24 17:07 Suraj-bhan

the presence of … instead of ... (one's single character and the other's 3 character) breaks it because btoa() inside ShareButton.js(84 line) cannot turn it into base64. funny enough, because i got the SAME problem and it took me a while the issue is the weird 3 dots in the stackoverflow example question.

VadimKht avatar Jul 04 '24 07:07 VadimKht