]> source.dussan.org Git - gitea.git/commitdiff
bugfix, suburl defaults to empty string when suburl is undefined
authorfundon <cfddream@gmail.com>
Fri, 26 Sep 2014 02:11:51 +0000 (10:11 +0800)
committerfundon <cfddream@gmail.com>
Fri, 26 Sep 2014 02:29:57 +0000 (10:29 +0800)
public/ng/js/gogs.js

index 64bf42f347af5e5eceb9f5387c261c6e273e0d2b..5e1d8ebd2c975e3b53bd107f290392f66cb2c4db 100644 (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();