Changed javascipt exception tracker method..
This commit is contained in:
@ -0,0 +1,16 @@
|
||||
@if (in_array($channel, ['bugsnag', 'sentry']))
|
||||
<script type="text/javascript"><!--
|
||||
var exception_tracker = {
|
||||
channel: '{{ $channel }}',
|
||||
action: '{{ $action }}',
|
||||
user: {
|
||||
id: '{{ user_id() }}',
|
||||
name: '{{ user()?->name }}',
|
||||
email: '{{ user()?->email }}',
|
||||
},
|
||||
ip: '{{ $ip }}',
|
||||
tags: {!! json_encode($tags) !!},
|
||||
params: {!! json_encode($params) !!},
|
||||
};
|
||||
//--></script>
|
||||
@endif
|
Reference in New Issue
Block a user