Skip to content

Commit

Permalink
Minor Sentry cleanup (#2255)
Browse files Browse the repository at this point in the history
* refactor: remove front-end types for old window.sentry

* refactor: remove window.sentry from page template
  • Loading branch information
lemald authored Oct 11, 2023
1 parent 811c95d commit bb792ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
3 changes: 0 additions & 3 deletions assets/src/skate.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ declare global {
}
orgSlug: string
}
sentry?: {
dsn: string
}
}
}

Expand Down
7 changes: 1 addition & 6 deletions lib/skate_web/templates/layout/_sentry.html.eex
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
<script>
window.sentry = {
dsn: "<%= Application.get_env(:skate, :sentry_frontend_dsn) %>",
environment: "<%= Application.get_env(:skate, :sentry_environment) %>",
release: "<%= Application.get_env(:sentry, :release) %>"
};
window.sentryInitialization = {
initArgs: {
dsn: "<%= Application.get_env(:skate, :sentry_frontend_dsn) %>",
environment: "<%= Application.get_env(:skate, :sentry_environment) %>",
release: "<%= Application.get_env(:sentry, :release) %>"
},
orgSlug: "<%= Application.get_env(:skate, :sentry_org_slug) %>"
};
}
</script>

0 comments on commit bb792ab

Please sign in to comment.