Browse Source

fix(mobile): ios device can't write out to volume control

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 3 years ago
parent
commit
23dac82256
1 changed files with 3 additions and 2 deletions
  1. 3 2
      frontend/src/pages/Station/index.vue

+ 3 - 2
frontend/src/pages/Station/index.vue

@@ -358,7 +358,7 @@
 										}}
 									</p>
 								</div>
-								<p id="volume-control">
+								<p id="volume-control" v-if="!isIOS">
 									<i
 										v-if="muted"
 										class="material-icons"
@@ -656,6 +656,7 @@ export default {
 	data() {
 		return {
 			utils,
+			isIOS: navigator.platform.match(/iPhone|iPod|iPad/),
 			title: "Station",
 			loading: true,
 			exists: true,
@@ -1314,7 +1315,7 @@ export default {
 				!this.stationPaused &&
 				!this.localPaused &&
 				this.playerReady &&
-				!navigator.platform.match(/iPhone|iPod|iPad/)
+				!this.isIOS
 			) {
 				const timeElapsed = this.getTimeElapsed();
 				const currentPlayerTime =