Fixed saving of volume

This commit is contained in:
Kasper Rynning-Tønnesen
2015-12-10 17:15:13 +01:00
parent 5538bca90c
commit b05bef2d01
2 changed files with 3 additions and 11 deletions

View File

@@ -19,15 +19,7 @@ var Playercontrols = {
initSlider: function()
{
if(localStorage.volume)
{
//vol = localStorage.getItem("volume");
vol = (Crypt.get_volume());
}else{
vol = 100;
//localStorage.setItem("volume", vol);
Crypt.set_volume(vol);
}
vol = (Crypt.get_volume());
$("#volume").slider({
min: 0,
max: 100,