diff options
Diffstat (limited to 'src/js/support.js')
-rw-r--r-- | src/js/support.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/js/support.js b/src/js/support.js index fc61bbf6..f75517d6 100644 --- a/src/js/support.js +++ b/src/js/support.js @@ -50,25 +50,6 @@ const support = { }; }, - // Local storage - // We can't assume if local storage is present that we can use it - storage: (() => { - if (!('localStorage' in window)) { - return false; - } - - // Try to use it (it might be disabled, e.g. user is in private/porn mode) - // see: https://github.com/sampotts/plyr/issues/131 - const test = '___test'; - try { - window.localStorage.setItem(test, test); - window.localStorage.removeItem(test); - return true; - } catch (e) { - return false; - } - })(), - // Picture-in-picture support // Safari only currently pip: (() => { |