Set JavaScript variables based on hostname
Most of the websites I work on have at least two environments: staging (for testing) and production (the live site). Each environment has a different configuration, e.g. staging will typically…
Freelance PHP Developer based in Manchester, UK