Fix for empty local storage

This commit is contained in:
Sam Potts 2015-02-19 23:16:51 +11:00
parent 3e68cec6ea
commit 2bd6a8390c
2 changed files with 2 additions and 2 deletions

View File

@ -794,7 +794,7 @@
// Use default if needed
if(typeof volume === "undefined") {
if(config.storage.enabled && config.storage.supported) {
volume = window.localStorage.plyr_volume;
volume = window.localStorage.plyr_volume || config.volume;
}
else {
volume = config.volume;

2
dist/js/plyr.js vendored

File diff suppressed because one or more lines are too long