diff --git a/src/App.vue b/src/App.vue
index c731147b..e8c4dc2d 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -132,6 +132,13 @@ export default {
// Browser is not Chrome
}
+ if (this.$store.getters.getAutoJoin) {
+ // Attempt to auto join
+ this.$store.dispatch('socketConnect', {
+ address: this.$store.getters.getAutoJoinUrl,
+ callback: function () {}
+ })
+ }
if (this.$route.query.ptserver && this.$route.query.ptroom) {
// Looks like a valid request...
diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue
index ac122b4f..748e6856 100644
--- a/src/components/Navbar.vue
+++ b/src/components/Navbar.vue
@@ -89,7 +89,6 @@ export default {
return this.logos.light.small
},
isPlayer: function () {
- console.log('Router path is ' + this.$route.path)
if (this.$route.path == '/') {
return true
}
@@ -111,8 +110,6 @@ export default {
return (this.ptConnected && this.ptServer && this.ptRoom && this.shortUrl)
},
shortUrl: function () {
- console.log('Short url calc done below')
- console.log(this.$store.getters.getShortLink)
return this.$store.getters.getShortLink
},
firstRun: function () {
@@ -127,14 +124,9 @@ export default {
return this.$refs.statisticsModal.open()
},
generateShortLink: function () {
- console.log('Generating a shortened link')
return this.sendShortLinkRequest(false)
- },
- sendShortLinkRequest: function (overrideHost) {
-
},
refreshPlexDevices: function () {
- let oldClient = this.$store.getters.getChosenClient
if (this.$store.getters.getSocket) {
this.$store.getters.getSocket.disconnect()
}
diff --git a/src/components/application.vue b/src/components/application.vue
index 9c442d49..feb94cbb 100644
--- a/src/components/application.vue
+++ b/src/components/application.vue
@@ -43,13 +43,7 @@ export default {
plexcontent
},
mounted: function () {
- if (this.$store.getters.getAutoJoin) {
- // Attempt to auto join
- this.$store.dispatch('socketConnect', {
- address: this.$store.getters.getAutoJoinUrl,
- callback: function () {}
- })
- }
+
},
created: function () {
},
diff --git a/src/components/application/joinroom.vue b/src/components/application/joinroom.vue
index bbdade0c..6d5c765c 100644
--- a/src/components/application/joinroom.vue
+++ b/src/components/application/joinroom.vue
@@ -109,7 +109,7 @@
export default {
props: ['object'],
name: 'joinroom',
- data () {
+ data () {
return {
selectedServer: '',
serverError: null,
diff --git a/src/components/application/nowplaying.vue b/src/components/application/nowplaying.vue
deleted file mode 100644
index 6fa5130a..00000000
--- a/src/components/application/nowplaying.vue
+++ /dev/null
@@ -1,161 +0,0 @@
-
- {{ metadata.summary }} {{ metadataTitle }}
- {{ metadataInfo }}
-
-
@@ -25,24 +25,20 @@ export default { name: 'join', mounted: function () { - var that = this - console.log('Hello from join...') this.password = this.$route.query.password this.room = this.$route.query.room this.server = this.$route.query.server this.owner = this.$route.query.owner if (this.room && this.server) { - // Looks like a valid request... - // Lets setup an auto join and then move the user to /sync + // Looks like a valid request... + // Lets setup an auto join and then move the user to /sync this.$store.commit('SET_AUTOJOIN', true) this.$store.commit('SET_AUTOJOINROOM', this.room) this.$store.commit('SET_AUTOJOINPASSWORD', this.password) this.$store.commit('SET_AUTOJOINURL', this.server) } }, - created: function () { - }, data () { return { server: null,