mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-04 16:14:07 +00:00
feat: let desktop users opt in to usage info and crash reports, each with its own switch
This commit is contained in:
@@ -33,7 +33,9 @@ export function parseStack(stack: unknown): Frame[] {
|
||||
for (const line of stack.split('\n')) {
|
||||
const match = V8.exec(line) ?? GECKO.exec(line);
|
||||
if (!match) continue;
|
||||
const [, fn, file, lineNo, column] = match;
|
||||
const [, fn, rawFile, lineNo, column] = match;
|
||||
// "at async file:1:2": an anonymous async frame.
|
||||
const file = rawFile.replace(/^async /, '');
|
||||
// "at fn (native)" and eval chains carry no file worth keeping.
|
||||
frames.push({
|
||||
path: scrubFramePath(file),
|
||||
|
||||
Reference in New Issue
Block a user