From f6f0e0e8cabaaffebbf746ae1c274b8858a292e9 Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Tue, 12 Mar 2013 15:37:22 -0400 Subject: [PATCH] #18 - Duplicate Logos When Installing Server --- MediaBrowser.WebDashboard/Html/scripts/site.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/MediaBrowser.WebDashboard/Html/scripts/site.js b/MediaBrowser.WebDashboard/Html/scripts/site.js index d2c9526ed5..7ecaff85bf 100644 --- a/MediaBrowser.WebDashboard/Html/scripts/site.js +++ b/MediaBrowser.WebDashboard/Html/scripts/site.js @@ -54,9 +54,13 @@ var Dashboard = { Dashboard.getCurrentUser(); } - // Re-render the header - $('.header').remove(); - Dashboard.ensureHeader($.mobile.activePage); + var header = $('.header', $.mobile.activePage); + + if (header.length) { + // Re-render the header + header.remove(); + Dashboard.ensureHeader($.mobile.activePage); + } }, getCurrentUserId: function () {