Skip to content

Commit

Permalink
remove listner
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh-mn-yral committed Feb 27, 2024
1 parent 15a2c2f commit 0bbe6b2
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@ import {
userProfile,
} from '$lib/stores/app'
import { removeSplashScreen } from '$lib/stores/popups'
import { onMount, tick } from 'svelte'
import { onDestroy, onMount, tick } from 'svelte'
import type { PageData } from './$types'
import { debounce } from 'throttle-debounce'
import { browser } from '$app/environment'
import { monitorForUserStudy, userStoryStore } from '$lib/helpers/user-study'
import {
clearMonitoring,
monitorForUserStudy,
userStoryStore,
} from '$lib/helpers/user-study'
import { authState } from '$lib/stores/auth'
import { registerEvent } from '@hnn/components/analytics/GA.utils'
Expand Down Expand Up @@ -169,6 +173,8 @@ beforeNavigate(() => {
$playerState.muted = true
videos.length > 2 && hotOrNotFeedVideos.set(videos.slice(currentVideoIndex))
})
onDestroy(() => clearMonitoring())
</script>

<svelte:head>
Expand Down

0 comments on commit 0bbe6b2

Please sign in to comment.