Fix for empty local storage
This commit is contained in:
parent
3e68cec6ea
commit
2bd6a8390c
@ -794,7 +794,7 @@
|
|||||||
// Use default if needed
|
// Use default if needed
|
||||||
if(typeof volume === "undefined") {
|
if(typeof volume === "undefined") {
|
||||||
if(config.storage.enabled && config.storage.supported) {
|
if(config.storage.enabled && config.storage.supported) {
|
||||||
volume = window.localStorage.plyr_volume;
|
volume = window.localStorage.plyr_volume || config.volume;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
volume = config.volume;
|
volume = config.volume;
|
||||||
|
2
dist/js/plyr.js
vendored
2
dist/js/plyr.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user