1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-09-17 01:15:59 -04:00

bugfix, suburl defaults to empty string when suburl is undefined

This commit is contained in:
fundon 2014-09-26 10:11:51 +08:00
parent 977779cdcf
commit 09c3c4e70c

View File

@ -616,7 +616,7 @@ function initProfile() {
} }
$(document).ready(function () { $(document).ready(function () {
Gogs.AppSubUrl = $('head').data('suburl'); Gogs.AppSubUrl = $('head').data('suburl') || '';
initCore(); initCore();
if ($('#user-profile-setting').length) { if ($('#user-profile-setting').length) {
initUserSetting(); initUserSetting();