Files
hoppscotch/packages/hoppscotch-app/helpers/sentry.ts
2021-12-16 18:02:01 +05:30

9 lines
271 B
TypeScript

import { useContext } from "@nuxtjs/composition-api"
import * as Sentry from "@sentry/browser"
export function useSentry() {
// TODO: Make Sentry load lazy at some point ? (see nuxt/sentry)
const { $sentry } = useContext()
return $sentry as any as typeof Sentry
}