Browse Source

bugfix, suburl defaults to empty string when suburl is undefined

pull/500/head
fundon 10 years ago
parent
commit
09c3c4e70c
  1. 2
      public/ng/js/gogs.js

2
public/ng/js/gogs.js

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

Loading…
Cancel
Save