mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-19 03:48:18 -07:00
35 lines
1017 B
JavaScript
35 lines
1017 B
JavaScript
(function () {
|
|
|
|
Dashboard.importCss('devices/ie/ie.css');
|
|
|
|
function onPageShow() {
|
|
|
|
var page = this;
|
|
|
|
if (navigator.userAgent.toLowerCase().indexOf('windows nt 10.') != -1) {
|
|
|
|
var expectedValue = new Date().toDateString() + "1";
|
|
if (appStorage.getItem("ieswitchtoedge") == expectedValue) {
|
|
return;
|
|
}
|
|
|
|
var msg = Globalize.translate('MessageTryMicrosoftEdge');
|
|
|
|
msg += "<br/><br/>";
|
|
msg += '<a href="https://www.microsoft.com/en-us/windows/microsoft-edge" target="_blank">' + Globalize.translate('ButtonLearnMore') + '</a>';
|
|
|
|
Dashboard.alert({
|
|
message: msg,
|
|
title: Globalize.translate('HeaderTryMicrosoftEdge')
|
|
});
|
|
|
|
appStorage.setItem("ieswitchtoedge", expectedValue);
|
|
} else {
|
|
|
|
}
|
|
}
|
|
|
|
pageClassOn('pageshow', "libraryPage", onPageShow);
|
|
pageClassOn('pageshow', "type-interior", onPageShow);
|
|
|
|
})(); |