feat: let desktop users opt in to usage info and crash reports, each with its own switch

This commit is contained in:
Linus Rath
2026-11-03 15:55:17 +01:00
parent bcd97d0d6e
commit 03cdf69bf2
54 changed files with 2150 additions and 15 deletions
+3 -1
View File
@@ -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),