Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure the document processed in background.js has a title element. #311

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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.

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.

None yet

2 participants