mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-01-01 15:16:17 +00:00
Fixed saving of volume
This commit is contained in:
4
static/dist/main.min.js
vendored
4
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -19,15 +19,7 @@ var Playercontrols = {
|
|||||||
|
|
||||||
initSlider: function()
|
initSlider: function()
|
||||||
{
|
{
|
||||||
if(localStorage.volume)
|
|
||||||
{
|
|
||||||
//vol = localStorage.getItem("volume");
|
|
||||||
vol = (Crypt.get_volume());
|
vol = (Crypt.get_volume());
|
||||||
}else{
|
|
||||||
vol = 100;
|
|
||||||
//localStorage.setItem("volume", vol);
|
|
||||||
Crypt.set_volume(vol);
|
|
||||||
}
|
|
||||||
$("#volume").slider({
|
$("#volume").slider({
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 100,
|
max: 100,
|
||||||
|
|||||||
Reference in New Issue
Block a user