mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #544 - No warning being given when running IE in compatibility mode
This commit is contained in:
parent
44e59e7215
commit
815f1d7342
2 changed files with 21 additions and 21 deletions
|
@ -1,4 +1,24 @@
|
|||
// Array Remove - By John Resig (MIT Licensed)
|
||||
function IsStorageEnabled() {
|
||||
try {
|
||||
localStorage.setItem("__test", "data");
|
||||
} catch (err) {
|
||||
if ((err.name).toUpperCase() == 'QUOTA_EXCEEDED_ERR') {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!window.WebSocket) {
|
||||
|
||||
alert("This browser does not support web sockets. For a better experience, try a newer browser such as Chrome (android, desktop), Firefox, IE10, Safari (iOS) or Opera.");
|
||||
}
|
||||
|
||||
if (!IsStorageEnabled()) {
|
||||
alert("This browser does not support local storage or is running in private mode. For a better experience, try a newer browser such as Chrome (android, desktop), Firefox, IE10, Safari (iOS) or Opera.");
|
||||
}
|
||||
|
||||
// Array Remove - By John Resig (MIT Licensed)
|
||||
Array.prototype.remove = function (from, to) {
|
||||
var rest = this.slice((to || from) + 1 || this.length);
|
||||
this.length = from < 0 ? this.length + from : from;
|
||||
|
@ -21,17 +41,6 @@ $.fn.checked = function (value) {
|
|||
}
|
||||
};
|
||||
|
||||
function IsStorageEnabled() {
|
||||
try {
|
||||
localStorage.setItem("__test", "data");
|
||||
} catch (err) {
|
||||
if ((err.name).toUpperCase() == 'QUOTA_EXCEEDED_ERR') {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!Array.prototype.filter) {
|
||||
Array.prototype.filter = function (fun /*, thisp*/) {
|
||||
"use strict";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue