소스 검색

Merge pull request #501 from fundon/fix_suburl_undefined

bugfix, suburl defaults to empty string when suburl is undefined
无闻 10 년 전
부모
커밋
c8b50975bc
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();