From 09c3c4e70c4873171dedb2ea4c217ec9f7fa5a7a Mon Sep 17 00:00:00 2001 From: fundon Date: Fri, 26 Sep 2014 10:11:51 +0800 Subject: [PATCH] bugfix, suburl defaults to empty string when suburl is undefined --- public/ng/js/gogs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/ng/js/gogs.js b/public/ng/js/gogs.js index 64bf42f3..5e1d8ebd 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();