frdrck / Pomme

The github for Pomme.us
http://pomme.us
4 stars 0 forks source link

change javascript paths to be more relative, less absolute #2

Closed geluso closed 12 years ago

geluso commented 12 years ago

Find everywhere in the code where javascript mentions:

document.location = "http://pomme.us/" + ...

and replace it with

var BASE_URL = "http://pomme.us/" document.location = BASE_URL + ...

this will make it easier for us to run our code locally, when javascript is interacting with a host different than production.

Consider placing the BASE_URL in another file to reduce the chance that we rewrite the value of the server in production when we edit files locally.

geluso commented 12 years ago

This issue has been resolved with this commit.

https://github.com/frdrck/Pomme/commit/e82fbf29e2a4f34a09603fe7a7ac7729d135290e