From c8990bd379d97f4eb14cc35aaa90caebfb7db220 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Fri, 8 Dec 2017 10:05:38 +0000 Subject: IE & Edge fixes, Storage & Console classes --- src/js/support.js | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/js/support.js') 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: (() => { -- cgit v1.2.3