mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 05:31:15 -07:00
Add browser warning for IE/Edge
This commit is contained in:
parent
c6f4c17a81
commit
1b772e60a9
2 changed files with 42 additions and 4 deletions
|
@ -4163,3 +4163,15 @@ a[data-tab-destination] {
|
||||||
.fa-blank {
|
.fa-blank {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#browser-warning {
|
||||||
|
height: 25px;
|
||||||
|
width: 100%;
|
||||||
|
background: #cc7b19;
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bold;
|
||||||
|
padding-top: 2px;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
z-index: 9999;
|
||||||
|
}
|
|
@ -1,3 +1,29 @@
|
||||||
|
var p = {
|
||||||
|
name: 'Unknown',
|
||||||
|
version: 'Unknown',
|
||||||
|
os: 'Unknown'
|
||||||
|
};
|
||||||
|
if (typeof platform !== 'undefined') {
|
||||||
|
p.name = platform.name;
|
||||||
|
p.version = platform.version;
|
||||||
|
p.os = platform.os.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (['IE', 'Microsoft Edge', 'IE Mobile'].indexOf(p.name) > -1) {
|
||||||
|
$('body').prepend('<div id="browser-warning"><i class="fa fa-exclamation-circle"></i> ' +
|
||||||
|
'Tautulli does not support Internet Explorer or Microsoft Edge! ' +
|
||||||
|
'Please use a different browser such as Chrome or Firefox.</div>');
|
||||||
|
var offset = $('#browser-warning').height();
|
||||||
|
var navbar = $('.navbar-fixed-top');
|
||||||
|
if (navbar.length) {
|
||||||
|
navbar.offset({top: navbar.offset().top + offset});
|
||||||
|
}
|
||||||
|
var container = $('.body-container');
|
||||||
|
if (container.length) {
|
||||||
|
container.offset({top: container.offset().top + offset});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function initConfigCheckbox(elem, toggleElem, reverse) {
|
function initConfigCheckbox(elem, toggleElem, reverse) {
|
||||||
toggleElem = (toggleElem === undefined) ? null : toggleElem;
|
toggleElem = (toggleElem === undefined) ? null : toggleElem;
|
||||||
reverse = (reverse === undefined) ? false : reverse;
|
reverse = (reverse === undefined) ? false : reverse;
|
||||||
|
@ -506,10 +532,10 @@ var x_plex_headers = {
|
||||||
'X-Plex-Product': 'Tautulli',
|
'X-Plex-Product': 'Tautulli',
|
||||||
'X-Plex-Version': 'Plex OAuth',
|
'X-Plex-Version': 'Plex OAuth',
|
||||||
'X-Plex-Client-Identifier': localStorage.getItem('Tautulli_ClientId'),
|
'X-Plex-Client-Identifier': localStorage.getItem('Tautulli_ClientId'),
|
||||||
'X-Plex-Platform': platform.name,
|
'X-Plex-Platform': p.name,
|
||||||
'X-Plex-Platform-Version': platform.version,
|
'X-Plex-Platform-Version': p.version,
|
||||||
'X-Plex-Device': platform.os.toString(),
|
'X-Plex-Device': p.os,
|
||||||
'X-Plex-Device-Name': platform.name
|
'X-Plex-Device-Name': p.name
|
||||||
};
|
};
|
||||||
|
|
||||||
var plex_oauth_window = null;
|
var plex_oauth_window = null;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue