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:
parent
6ee89acc1c
commit
17ee0b713a
2 changed files with 15 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue