浏览代码

bugfix, suburl defaults to empty string when suburl is undefined

fundon 10 年之前
父节点
当前提交
09c3c4e70c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/ng/js/gogs.js

+ 1 - 1
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();