deathau / markdownload

A Firefox and Google Chrome extension to clip websites and download them into a readable markdown file.
Apache License 2.0
2.8k stars 223 forks source link

fix: codeSource.firstChild is null #343

Open rickdoesdev opened 1 month ago

rickdoesdev commented 1 month ago

Error when trying to access nodeName when element has a null firstChild.

Uncaught (in promise) TypeError: codeSource.firstChild is null

Make sure object reference is not null before we try to use it.