From 3cd471644ca6249c2d22459a8a8227a8a7fa7613 Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Sun, 17 Mar 2013 23:10:21 -0400 Subject: [PATCH] fixed client type display for ios. also fixed display preferences saving. --- Html/scripts/DashboardPage.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Html/scripts/DashboardPage.js b/Html/scripts/DashboardPage.js index 635553076a..e61febb263 100644 --- a/Html/scripts/DashboardPage.js +++ b/Html/scripts/DashboardPage.js @@ -114,36 +114,36 @@ getClientType: function (connection) { - if (connection.ClientType == "Dashboard") { + if (connection.Client.toLowerCase() == "dashboard") { return "Dashboard"; } - if (connection.ClientType == "Pc") { + if (connection.Client.toLowerCase() == "mediabrowsertheater") { - return "Media Browser"; + return "Media Browser Theater"; } - if (connection.ClientType == "Android") { + if (connection.Client.toLowerCase() == "android") { return "Android"; } - if (connection.ClientType == "Ios") { + if (connection.Client.toLowerCase() == "ios") { return "iOS"; } - if (connection.ClientType == "WindowsRT") { + if (connection.Client.toLowerCase() == "windowsrt") { return "Windows RT"; } - if (connection.ClientType == "WindowsPhone") { + if (connection.Client.toLowerCase() == "windowsphone") { return "Windows Phone"; } - if (connection.ClientType == "Dlna") { + if (connection.Client.toLowerCase() == "dlna") { return "Dlna"; } - return connection.ClientType; + return connection.Client; }, getNowPlayingImage: function (item) {