aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/peertube-player-local-storage.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/assets/player/peertube-player-local-storage.ts')
-rw-r--r--client/src/assets/player/peertube-player-local-storage.ts12
1 files changed, 5 insertions, 7 deletions
diff --git a/client/src/assets/player/peertube-player-local-storage.ts b/client/src/assets/player/peertube-player-local-storage.ts
index c3d8b71bc..3ac5fe58a 100644
--- a/client/src/assets/player/peertube-player-local-storage.ts
+++ b/client/src/assets/player/peertube-player-local-storage.ts
@@ -10,13 +10,11 @@ function getStoredVolume () {
10 return undefined 10 return undefined
11} 11}
12 12
13function getStoredWebTorrentPolicy () { 13function getStoredWebTorrentEnabled (): boolean {
14 const value = getLocalStorage('webtorrent_policy') 14 const value = getLocalStorage('webtorrent_enabled')
15 if (value !== null && value !== undefined) { 15 if (value !== null && value !== undefined) return value === 'true'
16 if (value.toString() === 'disable') return true
17 }
18 16
19 return undefined 17 return false
20} 18}
21 19
22function getStoredMute () { 20function getStoredMute () {
@@ -65,7 +63,7 @@ function getAverageBandwidthInStore () {
65 63
66export { 64export {
67 getStoredVolume, 65 getStoredVolume,
68 getStoredWebTorrentPolicy, 66 getStoredWebTorrentEnabled,
69 getStoredMute, 67 getStoredMute,
70 getStoredTheater, 68 getStoredTheater,
71 saveVolumeInStore, 69 saveVolumeInStore,