diff options
author | fundon <cfddream@gmail.com> | 2014-09-26 10:11:51 +0800 |
---|---|---|
committer | fundon <cfddream@gmail.com> | 2014-09-26 10:29:57 +0800 |
commit | 09c3c4e70c4873171dedb2ea4c217ec9f7fa5a7a (patch) | |
tree | 2afa12ce1bcbcbda9b8fdbeb0dd19d9dee250ba9 /public | |
parent | 977779cdcf893b2a6e148c1d4772efccef2dbe03 (diff) | |
download | gitea-09c3c4e70c4873171dedb2ea4c217ec9f7fa5a7a.tar.gz gitea-09c3c4e70c4873171dedb2ea4c217ec9f7fa5a7a.zip |
bugfix, suburl defaults to empty string when suburl is undefined
Diffstat (limited to 'public')
-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(); |