Skip to content

Conversation

WetHat
Copy link

@WetHat WetHat commented Mar 28, 2024

This addresses issue #310: which describes a download failure for a specific website, because pageTitle is empty.

The proposed fix here makes sure that the HTML document processed in background.js has a proper <title> tag, so that pageTitle can be populated.

Note: Despite a missing <title> tag browsers manage to provide a useful window title. Hence the best place to fix this issue seems to be contentScript.js because it is run in the context of the original HTML page

@WetHat WetHat changed the title Make sure the document processed in background.js ha a title. Make sure the document processed in background.js has a title element. Mar 28, 2024
@aancw
Copy link

aancw commented Apr 26, 2024

I think this PR can be adapted in the obsidian feature too.

@deathau deathau merged commit b2a7317 into deathau:master Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants