Skip to content

Commit

Permalink
feat: note found Electron version if present in dump (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon authored May 9, 2024
1 parent c309695 commit bbe4321
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ const symbolicate = async (options) => {
const symbolCache = new Map
const dumpText = await fs.promises.readFile(file, 'utf8')
const images = binaryImages(dumpText)
const electronImage = images.find(v => /electron/i.test(v.library))
if (electronImage) console.error(`Found Electron ${electronImage.version}`)
else console.error('No Electron image found')

let result = []

Expand Down

0 comments on commit bbe4321

Please sign in to comment.