Created
April 9, 2016 20:10
-
-
Save daviddahl/fb4de208398099baca545f6c816085e1 to your computer and use it in GitHub Desktop.
configuration.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function () { | |
/* | |
* Write Configuration Properties Here: | |
*/ | |
var PROTO = 'https://'; | |
var HOST = 'dev.nulltxt.se'; | |
var PORT = null; | |
var API_PATH = 'api/v1/'; | |
// Unique partner key in the database | |
var PARTNER_ID = 'bnVsbHR4dDIwMDYxMGZvb2Fi'; | |
// Add more system configuration properties here | |
var PASSWORD_RESET_URL = 'https://dev.nulltxt.se/password_reset/recover/'; | |
// End system configuration properties | |
/* | |
* This file must be copied to | |
* 'js/tvrunway/configuration.js' | |
* in order to use this configuration | |
* CONFIG OBJECT *** DO NOT WRITE BELOW HERE | |
*/ | |
var config = { | |
dataHost: PROTO + | |
HOST + | |
(PORT ? ':' + PORT : '') + | |
'/' + | |
API_PATH, | |
partnerId: PARTNER_ID, | |
passwordResetUrl: PASSWORD_RESET_URL | |
}; | |
window.__configuration__ = config; | |
/* Note: | |
* Inside the TVRunway constructor we grab this ^^ object, | |
* clone it and set it as tvrunway.configuration | |
* Then delete the __configuration__ object | |
*/ | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment