mirror of
https://github.com/janishutz/MusicPlayerV2.git
synced 2025-11-26 21:34:23 +00:00
lots of progress on apple music integration
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
<div v-else class="no-songs">
|
||||
<h3>No songs loaded</h3>
|
||||
<button @click="loadSongs()">Load songs</button>
|
||||
<button @click="useAppleMusic()">Use AppleMusic (opens a web-browser)</button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -379,6 +380,9 @@
|
||||
this.update( { 'type': 'playback', 'status': false } );
|
||||
this.$emit( 'com', { 'type': 'pause', 'song': song } );
|
||||
},
|
||||
useAppleMusic() {
|
||||
fetch( 'http://localhost:8081/useAppleMusic' );
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user