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
-
It really feels good when you have to go back to it later, and it makes sense / changes are easy.
-
The manual HTTP -> HTTPS conversion should really be handled on the server.
Just add upgrade-insecure-requests to your CSP and enable HSTS. -
@SortOfTested hahah. I get URLs as string and had to fix the in the past. Maybe not anymore...
Now that I think about it I'm so dumb! I don't even use that part of the string! I only use the pathname! I could probably get it in a easier way other than splitting the string! 🤦🏻♂️ 🤦🏻♂️
Related Rants
Man! I love refactoring! 👨🏻💻😍
Only saved about 20 lines but it went from ugly string manipulation to beautiful JavaScript objects!
rant
webdev
js
javascript