mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix ie hang on library setup
This commit is contained in:
parent
3d458f8076
commit
3d0d3247fd
13 changed files with 58 additions and 15 deletions
33
dashboard-ui/devices/ie/ie.js
Normal file
33
dashboard-ui/devices/ie/ie.js
Normal file
|
@ -0,0 +1,33 @@
|
|||
(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();
|
||||
if (appStorage.getItem("ieswitchtoedge") == expectedValue) {
|
||||
return;
|
||||
}
|
||||
|
||||
appStorage.setItem("ieswitchtoedge", expectedValue);
|
||||
|
||||
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')
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
pageClassOn('pageshow', "libraryPage", onPageShow);
|
||||
pageClassOn('pageshow', "type-interior", onPageShow);
|
||||
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue