Explorar el Código

bugfix, suburl defaults to empty string when suburl is undefined

fundon hace 10 años
padre
commit
09c3c4e70c
Se han modificado 1 ficheros con 1 adiciones y 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();