bobuk/kittycheck — pull request #15 by leonardinius (2012-05-30 15:40:53+00:00)
Title: Some minor tweaks: first of all - removing hardcoded API URL

Objective:

API URL used to be hardcoded in the javascript files. It made local testing locally pain - by means of what I needed to patch them locally to make it work.

The patch attached will remove such as constraint.
* config.py - base url will be placed here
* api.js - base url will be passed in through iframe as window.BASE_URL (placed there by python code)
* inject.js - is renamed to inject-kitten.js and will autodetect BASE_URL from document.getElementsByTagName('script') elements (by filename)