Revision 8380
Added by ben leinfelder about 11 years ago
lib/style/skins/account/account.js | ||
---|---|---|
86 | 86 |
|
87 | 87 |
//The server url which will install the skin |
88 | 88 |
var SERVER_URL |
89 |
= "https://chico1.dyndns.org"; |
|
89 |
= window.location.origin || (window.location.protocol + "//" + window.location.host); |
|
90 |
//= "https://chico1.dyndns.org"; |
|
90 | 91 |
|
91 | 92 |
//The name of the context |
92 | 93 |
var CONTEXT_NAME |
93 |
="account"; |
|
94 |
= location.pathname.split("/")[1] || "account";
|
|
94 | 95 |
|
95 |
//The combination of the serverl url and context name
|
|
96 |
//The combination of the server url and context name |
|
96 | 97 |
var CONTEXT_URL |
97 |
= SERVER_URL + "/"+CONTEXT_NAME;
|
|
98 |
= SERVER_URL + "/" + CONTEXT_NAME;
|
|
98 | 99 |
|
99 | 100 |
//The url path of the cgi directory |
100 | 101 |
var CGI_URL |
Also available in: Unified diff
make account index.html more dynamic for our typical installations. May still require a context configuration value to be manually specified, but at least the default will work and we don't need to hardcode a hostname.