DEV Community

Discussion on: window.location Cheatsheet

Collapse
 
5t3ph profile image
Stephanie Eckles

When I was trying to decide an efficient way to determine if files were being served on localhost or prod, I came here and ended up with if(window.location.port) to test for localhost πŸ™ŒI'm sure I will visit more in the future, great job creating an excellent, clear resource!

Collapse
 
samanthaming profile image
Samantha Ming

Nice! Glad you found the article helping and you were able to apply the knowledge right away! I also list all my tidbits on my site if you want another resource to check out 😊 > samanthaming.com/