Parcourir la source

bugfix, suburl defaults to empty string when suburl is undefined

fundon il y a 10 ans
Parent
commit
09c3c4e70c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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();