-
-// ---------------------------------------------------------------------------
-
-const KEY_PREFIX = 'peertube-videojs-'
-
-function getLocalStorage (key: string) {
- try {
- return localStorage.getItem(KEY_PREFIX + key)
- } catch {
- return undefined
- }
-}
-
-function setLocalStorage (key: string, value: string) {
- try {
- localStorage.setItem(KEY_PREFIX + key, value)
- } catch { /* empty */ }
-}