Skip to content

Commit

Permalink
fix: fix location tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon committed Feb 20, 2020
1 parent 95603f0 commit 48caf98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/callbacks-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export class CallbacksRegistry {
const location = match[1]
if (location.includes('(native)')) continue
if (location.includes('(<anonymous>)')) continue
if (location.includes('electron/js2c')) continue
if (location.includes('electron-remote/dist')) continue
if (location.includes('@electron/remote/dist')) continue

const ref = /([^/^)]*)\)?$/gi.exec(location)
if (ref) filenameAndLine = ref![1]
Expand Down

0 comments on commit 48caf98

Please sign in to comment.