1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

try to detect browser running in private mode

This commit is contained in:
Luke Pulverenti 2013-08-23 18:13:45 -04:00
parent 6ee89acc1c
commit 17ee0b713a
2 changed files with 15 additions and 0 deletions

View file

@ -21,6 +21,17 @@ $.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";