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

add browser extension feature to subscribe to feed #3305

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aaachen
Copy link
Contributor

@aaachen aaachen commented Jan 3, 2024

#3059

Since XML pages are not html, the toolbox/notification cannot be shown (same issue with PDF even though in code it tries to display toolbox). UI to add notification can be iterated later, currently just logs in console.

Copy link

vercel bot commented Jan 3, 2024

@aaachen is attempting to deploy a commit to the omnivore Team on Vercel.

A member of the Team first needs to authorize it.

@aaachen aaachen changed the title add feature to subscribe to feed add browser extension feature to subscribe to feed Jan 3, 2024
function isFeedPage() {
const fileExtension = window.location.pathname.slice(-4).toLowerCase()
const hasXMLExtension = fileExtension === '.xml'
const xmlContentTypes = [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we have a few other types we handle here /cc @sywhb

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, i think .rss and .html could belong to here too

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah the problem with HTML though is then it wont work for nomal pages, so maybe we have to just be conservative and handle XML here, even though a lot of sites return it as HTML.

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

3 participants