Skip to content

Commit

Permalink
core: frontend: App: Redirect page to use blueos.local
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Mar 25, 2022
1 parent e107c11 commit b4c894a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -356,12 +356,18 @@ export default Vue.extend({
},
mounted() {
updateTime()
this.checkAddress()
this.setupCallbacks()
this.checkTour()
updateTime()
},
methods: {
checkAddress(): void {
if (window.location.host.includes('companion.local')) {
window.location.replace('http://blueos.local')
}
},
setupCallbacks(): void {
this.tourCallbacks = {
onSkip: this.skipTour,
Expand Down

0 comments on commit b4c894a

Please sign in to comment.