summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorfundon <cfddream@gmail.com>2014-09-26 10:11:51 +0800
committerfundon <cfddream@gmail.com>2014-09-26 10:29:57 +0800
commit09c3c4e70c4873171dedb2ea4c217ec9f7fa5a7a (patch)
tree2afa12ce1bcbcbda9b8fdbeb0dd19d9dee250ba9 /public
parent977779cdcf893b2a6e148c1d4772efccef2dbe03 (diff)
downloadgitea-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.js2
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();