fix for base paths

This commit is contained in:
Matej Kramny 2017-05-20 16:25:41 +02:00
parent 68c5c49fdc
commit 624f2c3527
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,7 @@
require.config({
baseUrl: 'public/js',
baseUrl: document.baseURI + 'public/js',
waitSeconds: 10,
paths: {
async: 'public/vendor/async'
async: document.baseURI + 'public/vendor/async'
}
});

View File

@ -161,6 +161,9 @@ func init() {
Cookie = securecookie.New(hash, encryption)
WebHostURL, _ = url.Parse(Config.WebHost)
if len(WebHostURL.String()) == 0 {
WebHostURL = nil
}
}
func (conf *configType) GenerateCookieSecrets() {