Commit 15f07edf authored by Janis Streib's avatar Janis Streib 🦉
Browse files

ADD: more info about the user/browser on error report

parent 43b865db
Pipeline #146757 passed with stages
in 6 minutes and 42 seconds
......@@ -108,6 +108,18 @@ export default {
self.global_error = payload
}
self.global_error.route_info = {path: this.$route.path, redir_from: this.$route.redirectedFrom}
self.global_error.session_info = {
browser: {
app_code_name: window.navigator.appCodeName,
vendor: window.navigator.vendor,
user_agent: window.navigator.userAgent
}
}
if (this.$store.state.user) {
self.global_error.session_info.login_name = this.$store.state.user.login_name
} else {
self.global_error.session_info.login_name = null
}
self.global_error = JSON.stringify(self.global_error, null, 4)
this.$bvModal.show('net-suite-error')
})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment