Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
the one of this values is created by the backend, so instead of add a variable and make it true or false you simply write it when you generate the response. Probably he checks against "true" and not just if (var), because it's js and something could go wrong.
I have use this approach some times, it's not the best, but it's a nice hack. -
trevorj488yHoly shit. Even in the tragic desolate land of Javascript, this can't ever be a good idea.
-
skonteam9828y@superuser if he can manipulate the response , he can either omit the if statement entirely when he wants it to be true , or delete the life if it's false. a better IMHO.
-
Cube18929308yIt's JavaScript though so I bet there's a way for 'true' not to be (strictly) equal to 'true'...
-
a the beta version of speed test.
it's a html based speed test instead of flash. it's really fast and more accurate I recommend it -
@inpothet It redirects me to the beta version now since Chrome disables Flash by default (at least in the dev release). The filtering proxy at work currently blocks the servers used by the beta version though :/
Just found this on speedtest.net
undefined
speedtest.net
true
javascript