diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/src/app/shared/users/user.service.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/app/shared/users/user.service.ts b/client/src/app/shared/users/user.service.ts index 5442a8453..abb4088b5 100644 --- a/client/src/app/shared/users/user.service.ts +++ b/client/src/app/shared/users/user.service.ts | |||
@@ -242,6 +242,7 @@ export class UserService { | |||
242 | 242 | ||
243 | getAnonymousUser () { | 243 | getAnonymousUser () { |
244 | let videoLanguages | 244 | let videoLanguages |
245 | |||
245 | try { | 246 | try { |
246 | videoLanguages = JSON.parse(this.localStorageService.getItem(User.KEYS.VIDEO_LANGUAGES)) | 247 | videoLanguages = JSON.parse(this.localStorageService.getItem(User.KEYS.VIDEO_LANGUAGES)) |
247 | } catch (err) { | 248 | } catch (err) { |
@@ -253,11 +254,12 @@ export class UserService { | |||
253 | // local storage keys | 254 | // local storage keys |
254 | nsfwPolicy: this.localStorageService.getItem(User.KEYS.NSFW_POLICY) as NSFWPolicyType, | 255 | nsfwPolicy: this.localStorageService.getItem(User.KEYS.NSFW_POLICY) as NSFWPolicyType, |
255 | webTorrentEnabled: this.localStorageService.getItem(User.KEYS.WEBTORRENT_ENABLED) !== 'false', | 256 | webTorrentEnabled: this.localStorageService.getItem(User.KEYS.WEBTORRENT_ENABLED) !== 'false', |
256 | autoPlayVideo: this.localStorageService.getItem(User.KEYS.AUTO_PLAY_VIDEO) === 'true', | ||
257 | autoPlayNextVideoPlaylist: this.localStorageService.getItem(User.KEYS.AUTO_PLAY_VIDEO_PLAYLIST) === 'true', | ||
258 | theme: this.localStorageService.getItem(User.KEYS.THEME) || 'default', | 257 | theme: this.localStorageService.getItem(User.KEYS.THEME) || 'default', |
259 | videoLanguages, | 258 | videoLanguages, |
260 | 259 | ||
260 | autoPlayNextVideoPlaylist: this.localStorageService.getItem(User.KEYS.AUTO_PLAY_VIDEO_PLAYLIST) !== 'false', | ||
261 | autoPlayVideo: this.localStorageService.getItem(User.KEYS.AUTO_PLAY_VIDEO) === 'true', | ||
262 | |||
261 | // session storage keys | 263 | // session storage keys |
262 | autoPlayNextVideo: this.sessionStorageService.getItem(User.KEYS.SESSION_STORAGE_AUTO_PLAY_NEXT_VIDEO) === 'true' | 264 | autoPlayNextVideo: this.sessionStorageService.getItem(User.KEYS.SESSION_STORAGE_AUTO_PLAY_NEXT_VIDEO) === 'true' |
263 | }) | 265 | }) |