Explorar o código

bugfix, suburl defaults to empty string when suburl is undefined

fundon %!s(int64=10) %!d(string=hai) anos
pai
achega
09c3c4e70c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();