diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-09-25 22:51:31 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-09-25 22:51:31 -0400 |
commit | c8b50975bc2c6e11607b62278840299745caffe9 (patch) | |
tree | 340519f487e75d320da78859cabc7bac98778db1 | |
parent | 10673417dcf5e27bb0a654dee3a2129f3fc2ebfc (diff) | |
parent | 09c3c4e70c4873171dedb2ea4c217ec9f7fa5a7a (diff) | |
download | gitea-c8b50975bc2c6e11607b62278840299745caffe9.tar.gz gitea-c8b50975bc2c6e11607b62278840299745caffe9.zip |
Merge pull request #501 from fundon/fix_suburl_undefined
bugfix, suburl defaults to empty string when suburl is undefined
-rw-r--r-- | public/ng/js/gogs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/ng/js/gogs.js b/public/ng/js/gogs.js index 64bf42f347..5e1d8ebd2c 100644 --- a/public/ng/js/gogs.js +++ b/public/ng/js/gogs.js @@ -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(); |