Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I didn’t say that they should do this for security of the execution environment of the code, I’m not sure how you got to that interpretation. The GP said that there is output to tell users not to compromise themselves by blindly pasting unsafe code, which is easily prevented by disabling dev tools altogether, and there is no reason for an end user to have access to dev tools in an electron app. The other replies are probably what the GP meant and were related to the web version of discord.


> there is output to tell users not to compromise themselves by blindly pasting unsafe code

For reference: https://user-images.githubusercontent.com/47160230/51995729-...

This is also present in the Electron version of Discord.

> there is no reason for an end user to have access to dev tools in an electron app.

Certainly there is - there are various user-made applications that take advantage of Discord being built on Electron to allow you to write your own custom styles and scripts.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: