Browse Source

Volume set to 20 if it isn't set.

KrisVos130 8 năm trước cách đây
mục cha
commit
b7269b8820
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      frontend/components/Station/Station.vue

+ 1 - 1
frontend/components/Station/Station.vue

@@ -480,8 +480,8 @@
 
 			
 			let volume = parseInt(localStorage.getItem("volume"));
-			if (!volume) localStorage.setItem("volume", 50);
 			volume = (typeof volume === "number") ? volume : 20;
+			localStorage.setItem("volume", volume);
 			$("#volumeSlider").val(volume);
 		},
 		components: {