Skip to content

Commit

Permalink
Prepare for running on different url
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbuchman committed Jan 2, 2021
1 parent 12fa625 commit 7fb0f01
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</h1>
<div class="links">
<a
href="https://accounts.spotify.com/authorize?client_id=d58342257cb443e6847a98d9a0476bbf&redirect_uri=http:%2F%2Flocalhost:3000%2Fspotify&scope=user-top-read&response_type=token&state=123"
v-bind:href="redirect_uri"
target="_self"
class="button--green"
>
Expand All @@ -29,7 +29,13 @@
<script lang="ts">
import Vue from 'vue'
export default Vue.extend({})
export default Vue.extend({
data(){
return {
redirect_uri: `https://accounts.spotify.com/authorize?client_id=d58342257cb443e6847a98d9a0476bbf&redirect_uri=http:%2F%2F${window.location.host}%2Fspotify&scope=user-top-read&response_type=token&state=123`
}
}
})
</script>

<style>
Expand Down

0 comments on commit 7fb0f01

Please sign in to comment.