mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
display browser version
This commit is contained in:
parent
f63a1f4e47
commit
ad13084923
2 changed files with 22 additions and 6 deletions
|
@ -74,15 +74,24 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) {
|
|||
else if ($.browser.msie) {
|
||||
name = "Internet Explorer";
|
||||
}
|
||||
else if ($.browser.firefox || $.browser.mozilla) {
|
||||
else if ($.browser.firefox) {
|
||||
name = "Firefox";
|
||||
}
|
||||
else if ($.browser.opera) {
|
||||
name = "Opera";
|
||||
}
|
||||
else {
|
||||
name = "Web Browser";
|
||||
}
|
||||
|
||||
if (name)
|
||||
{
|
||||
if ($.browser.version)
|
||||
{
|
||||
name += " " + $.browser.version;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
name = "Web Browser";
|
||||
}
|
||||
|
||||
if ($.browser.ipad) {
|
||||
name += " Ipad";
|
||||
|
@ -3500,9 +3509,16 @@ MediaBrowser.SHA1 = function (msg) {
|
|||
/(iphone)/.exec(ua) ||
|
||||
/(android)/.exec(ua) ||
|
||||
[];
|
||||
|
||||
var browser = match[1] || "";
|
||||
|
||||
if (ua.indexOf("like gecko") != -1 && ua.indexOf('webkit') == -1)
|
||||
{
|
||||
browser = "msie";
|
||||
}
|
||||
|
||||
return {
|
||||
browser: match[1] || "",
|
||||
browser: browser,
|
||||
version: match[2] || "0",
|
||||
platform: platform_match[0] || ""
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="MediaBrowser.ApiClient.Javascript" version="3.0.146" targetFramework="net45" />
|
||||
<package id="MediaBrowser.ApiClient.Javascript" version="3.0.151" targetFramework="net45" />
|
||||
<package id="ServiceStack.Common" version="3.9.56" targetFramework="net45" />
|
||||
<package id="ServiceStack.Text" version="3.9.55" targetFramework="net45" />
|
||||
</packages>
|
Loading…
Reference in a new issue