mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update dialogs
This commit is contained in:
parent
62e03ef0be
commit
e156534cba
4 changed files with 16 additions and 13 deletions
|
@ -55,6 +55,9 @@
|
|||
if ($.browser.msie) {
|
||||
return false;
|
||||
}
|
||||
if ($.browser.edge) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -6,15 +6,13 @@
|
|||
|
||||
var page = this;
|
||||
|
||||
if (navigator.userAgent.toLowerCase().indexOf('Windows NT 10.') != -1) {
|
||||
if (navigator.userAgent.toLowerCase().indexOf('windows nt 10.') != -1) {
|
||||
|
||||
var expectedValue = new Date().toDateString();
|
||||
var expectedValue = new Date().toDateString() + "1";
|
||||
if (appStorage.getItem("ieswitchtoedge") == expectedValue) {
|
||||
return;
|
||||
}
|
||||
|
||||
appStorage.setItem("ieswitchtoedge", expectedValue);
|
||||
|
||||
var msg = Globalize.translate('MessageTryMicrosoftEdge');
|
||||
|
||||
msg += "<br/><br/>";
|
||||
|
@ -24,6 +22,8 @@
|
|||
message: msg,
|
||||
title: Globalize.translate('HeaderTryMicrosoftEdge')
|
||||
});
|
||||
|
||||
appStorage.setItem("ieswitchtoedge", expectedValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -147,7 +147,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
if ($.browser.chrome) {
|
||||
if ($.browser.chrome || $.browser.edge) {
|
||||
profile.DirectPlayProfiles.push({
|
||||
Container: 'mkv,mov',
|
||||
Type: 'Video',
|
||||
|
@ -466,11 +466,11 @@
|
|||
|
||||
profile.ResponseProfiles = [];
|
||||
|
||||
//profile.ResponseProfiles.push({
|
||||
// Type: 'Video',
|
||||
// Container: 'mkv',
|
||||
// MimeType: 'video/webm'
|
||||
//});
|
||||
profile.ResponseProfiles.push({
|
||||
Type: 'Video',
|
||||
Container: 'mkv',
|
||||
MimeType: 'video/mp4'
|
||||
});
|
||||
|
||||
profile.ResponseProfiles.push({
|
||||
Type: 'Video',
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
crossDomain: true
|
||||
});
|
||||
|
||||
if ($.browser.msie) {
|
||||
if ($.browser.msie || $.browser.edge) {
|
||||
|
||||
// This is unfortunately required due to IE's over-aggressive caching.
|
||||
// https://github.com/MediaBrowser/MediaBrowser/issues/179
|
||||
|
@ -504,7 +504,7 @@ var Dashboard = {
|
|||
} else {
|
||||
|
||||
// IE renders it incorrectly
|
||||
if (!$.browser.msie) {
|
||||
if (!$.browser.msie && !$.browser.edge) {
|
||||
elem = document.createElement("paper-spinner");
|
||||
elem.classList.add('docspinner');
|
||||
|
||||
|
@ -2054,7 +2054,7 @@ var AppInfo = {};
|
|||
|
||||
var urlArgs = "v=" + window.dashboardVersion;
|
||||
|
||||
if ($.browser.msie) {
|
||||
if ($.browser.msie || $.browser.edge) {
|
||||
urlArgs += new Date().getTime();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue