Skip to content
This repository has been archived by the owner on Oct 9, 2022. It is now read-only.

Commit

Permalink
chore: remove unnecessary ping on focus
Browse files Browse the repository at this point in the history
  • Loading branch information
phanan committed Dec 5, 2020
1 parent 31adae0 commit dbdcc59
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions js/app.vue
Expand Up @@ -34,7 +34,7 @@ import Overlay from '@/components/ui/overlay.vue'
import { eventBus, showOverlay, hideOverlay, $, app as appUtils } from '@/utils'
import { events } from '@/config'
import { sharedStore, favoriteStore, queueStore, preferenceStore as preferences } from '@/stores'
import { playback, socket, http, auth } from '@/services'
import { playback, socket, auth } from '@/services'
import { clickaway, droppable, focus } from '@/directives'
export default Vue.extend({
Expand Down Expand Up @@ -101,10 +101,6 @@ export default Vue.extend({
e.returnValue = ''
})
// Ping the server everytime the window is focused, so that we don't have those
// "suddent" logout.
window.addEventListener('focus', () => http.get('/ping'))
this.subscribeToBroadcastedEvents()
// Let all other components know we're ready.
Expand Down

0 comments on commit dbdcc59

Please sign in to comment.