From: fundon Date: Fri, 26 Sep 2014 02:11:51 +0000 (+0800) Subject: bugfix, suburl defaults to empty string when suburl is undefined X-Git-Tag: v0.9.99~1766^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=09c3c4e70c4873171dedb2ea4c217ec9f7fa5a7a;p=gitea.git bugfix, suburl defaults to empty string when suburl is undefined --- diff --git a/public/ng/js/gogs.js b/public/ng/js/gogs.js index 64bf42f347..5e1d8ebd2c 100644 --- a/public/ng/js/gogs.js +++ b/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();