Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
350
Merge Requests
59
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
2631bf89
Commit
2631bf89
authored
19 minutes ago
by
Ben Hayward
Browse files
Options
Download
Fixed logic
parent
3c29c23e
fix/autoplay-bug-2377
1 merge request
!712
WIP: Plyr play error
Pipeline
#107942283
running with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
src/app/app.module.ts
View file @
2631bf89
...
...
@@ -80,16 +80,20 @@ Sentry.init({
environment
:
(
<
any
>
window
.
Minds
).
environment
||
'
development
'
,
beforeSend
(
event
)
{
try
{
// discarding errors without stack traces
if
(
event
.
extra
.
__serialized__
.
stack
===
'
[undefined]
'
||
// this works, tested and it stops the error i can reproduce
event
.
extra
.
__serialized__
stack
===
'
[native code]
'
// this I'm basing off the stack trace only having [native code] on some issues.
event
.
extra
.
__serialized__
.
stack
===
'
[undefined]
'
||
event
.
extra
.
__serialized__
.
stack
===
'
[native code]
'
)
{
return
null
;
}
// checking stack frames for packages to ignore.
const
stackFrames
=
event
.
exception
.
values
[
'
0
'
].
stacktrace
.
frames
;
if
(
stackFrames
[
stackFrames
.
length
].
filename
.
includes
(
'
plyr
'
))
{
//crawled the object to get
return
null
;
for
(
const
stack
of
stackFrames
)
{
if
(
stack
.
filename
.
includes
(
'
plyr
'
))
{
return
null
;
}
}
}
catch
(
e
)
{}
...
...
This diff is collapsed.
Please
register
or
sign in
to comment