Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-24 18:56:11 +01:00

Merge pull request #501 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
commit c8b50975bc

View file

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