From 09c3c4e70c4873171dedb2ea4c217ec9f7fa5a7a Mon Sep 17 00:00:00 2001
From: fundon <cfddream@gmail.com>
Date: Fri, 26 Sep 2014 10:11:51 +0800
Subject: bugfix, suburl defaults to empty string when suburl is undefined

---
 public/ng/js/gogs.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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();
-- 
cgit v1.2.3