1
0
mirror of https://gitcode.com/gitea/gitea.git synced 2025-07-15 05:01:41 +08:00

Merge pull request from fundon/fix_suburl_undefined

bugfix, suburl defaults to empty string when suburl is undefined
This commit is contained in:
无闻
2014-09-25 22:51:31 -04:00

@ -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();