Disable JS-Sentry in development
This commit is contained in:
@ -16,24 +16,25 @@ html lang='en'
|
|||||||
= yield(:head)
|
= yield(:head)
|
||||||
= csrf_meta_tags
|
= csrf_meta_tags
|
||||||
= timeago_script_tag
|
= timeago_script_tag
|
||||||
script type="text/javascript"
|
- unless Raven.configuration.current_environment == "development"
|
||||||
| I18n.defaultLocale = "#{I18n.default_locale}";
|
script type="text/javascript"
|
||||||
| I18n.locale = "#{I18n.locale}";
|
| I18n.defaultLocale = "#{I18n.default_locale}";
|
||||||
| Sentry.init({
|
| I18n.locale = "#{I18n.locale}";
|
||||||
| dsn: 'https://637ca99538224b4bb28cd9e670e1b372@sentry.xikolo.de/33',
|
| Sentry.init({
|
||||||
| attachStacktrace: true,
|
| dsn: 'https://637ca99538224b4bb28cd9e670e1b372@sentry.xikolo.de/33',
|
||||||
| release: "#{Raven.configuration.release}",
|
| attachStacktrace: true,
|
||||||
| environment: "#{Raven.configuration.current_environment}",
|
| release: "#{Raven.configuration.release}",
|
||||||
| });
|
| environment: "#{Raven.configuration.current_environment}",
|
||||||
- if @current_user
|
|
||||||
| Sentry.configureScope(function(scope) {
|
|
||||||
| scope.setUser({
|
|
||||||
| "id": "#{@current_user.id}",
|
|
||||||
| "type": "#{@current_user.class.name}",
|
|
||||||
| "username": "#{@current_user.displayname}",
|
|
||||||
| "consumer": "#{@current_user.consumer.name}"
|
|
||||||
| });
|
|
||||||
| });
|
| });
|
||||||
|
- if @current_user
|
||||||
|
| Sentry.configureScope(function(scope) {
|
||||||
|
| scope.setUser({
|
||||||
|
| "id": "#{@current_user.id}",
|
||||||
|
| "type": "#{@current_user.class.name}",
|
||||||
|
| "username": "#{@current_user.displayname}",
|
||||||
|
| "consumer": "#{@current_user.consumer.name}"
|
||||||
|
| });
|
||||||
|
| });
|
||||||
body
|
body
|
||||||
- unless @embed_options[:hide_navbar]
|
- unless @embed_options[:hide_navbar]
|
||||||
nav.navbar.navbar-dark.bg-dark.navbar-expand-md.mb-4.py-1 role='navigation'
|
nav.navbar.navbar-dark.bg-dark.navbar-expand-md.mb-4.py-1 role='navigation'
|
||||||
|
Reference in New Issue
Block a user