We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bce11e5 commit 8e6aae7Copy full SHA for 8e6aae7
packages/browser/src/integrations/globalhandlers.ts
@@ -242,7 +242,7 @@ export class GlobalHandlers implements Integration {
242
243
const colno = isNaN(parseInt(column, 10)) ? undefined : column;
244
const lineno = isNaN(parseInt(line, 10)) ? undefined : line;
245
- const filename = isString(url) ? url : getLocationHref();
+ const filename = isString(url) && url.length > 0 ? url : getLocationHref();
246
247
if (event.exception.values[0].stacktrace.frames.length === 0) {
248
event.exception.values[0].stacktrace.frames.push({
0 commit comments