23
rajkd
7y

Put random text in window.alert() where ever I got error in JavaScript code. Random text like 1) If you see this, you are fucked; 2) error 001; 3)why today; 4) the code is breaking here etc.

And never removed them. They are the running in production till now. I am just thankful to the gods that the code Nevers break and the user does not get browser alert and also the fact that I don't work there anymore.

Comments
  • 2
    Log to console or something like rollbar? :D
  • 1
    🤣🤣🤣
  • 0
    Nobody cared enough. Till now, nobody dares to removes the code now.
  • 1
    Perhaps there’s something like this in prod?
    window.alert = function (){};
Add Comment