Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
PeerTube
PeerTube
Commits
9870329f
Verified
Commit
9870329f
authored
Apr 08, 2020
by
Chocobozzz
Browse files
Fix playlist autoplay
parent
9cdeb806
Changes
1
Hide whitespace changes
Inline
Side-by-side
client/src/app/shared/users/user.service.ts
View file @
9870329f
...
...
@@ -242,6 +242,7 @@ export class UserService {
getAnonymousUser
()
{
let
videoLanguages
try
{
videoLanguages
=
JSON
.
parse
(
this
.
localStorageService
.
getItem
(
User
.
KEYS
.
VIDEO_LANGUAGES
))
}
catch
(
err
)
{
...
...
@@ -253,11 +254,12 @@ export class UserService {
// local storage keys
nsfwPolicy
:
this
.
localStorageService
.
getItem
(
User
.
KEYS
.
NSFW_POLICY
)
as
NSFWPolicyType
,
webTorrentEnabled
:
this
.
localStorageService
.
getItem
(
User
.
KEYS
.
WEBTORRENT_ENABLED
)
!==
'
false
'
,
autoPlayVideo
:
this
.
localStorageService
.
getItem
(
User
.
KEYS
.
AUTO_PLAY_VIDEO
)
===
'
true
'
,
autoPlayNextVideoPlaylist
:
this
.
localStorageService
.
getItem
(
User
.
KEYS
.
AUTO_PLAY_VIDEO_PLAYLIST
)
===
'
true
'
,
theme
:
this
.
localStorageService
.
getItem
(
User
.
KEYS
.
THEME
)
||
'
default
'
,
videoLanguages
,
autoPlayNextVideoPlaylist
:
this
.
localStorageService
.
getItem
(
User
.
KEYS
.
AUTO_PLAY_VIDEO_PLAYLIST
)
!==
'
false
'
,
autoPlayVideo
:
this
.
localStorageService
.
getItem
(
User
.
KEYS
.
AUTO_PLAY_VIDEO
)
===
'
true
'
,
// session storage keys
autoPlayNextVideo
:
this
.
sessionStorageService
.
getItem
(
User
.
KEYS
.
SESSION_STORAGE_AUTO_PLAY_NEXT_VIDEO
)
===
'
true
'
})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment