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

Fix medium detection #41

Closed
wants to merge 2 commits into from
Closed

Conversation

dangh
Copy link

@dangh dangh commented Sep 18, 2018

The old detection doesn't work on custom domain websites since medium only populate meta tag after the extension loaded.

Fix #40

@thebaer
Copy link
Owner

thebaer commented Sep 20, 2018

Hey, thanks for the PR, but I'm not seeing that issue on the URL in #40. The HTML of the page still includes the meta tag for me. Do you have a URL you've tested on and seen that the detection isn't working?

@dangh
Copy link
Author

dangh commented Sep 20, 2018

Sorry my bad 🤦‍♂️ It's working well in Chrome but Safari 12 due to another issue. At the time the content script loaded, the document head/body is null so the detection failed. See: https://developer.apple.com/documentation/safariservices/safari_app_extensions/injecting_a_script_into_a_webpage#2958109

Closing now.

@dangh dangh closed this Sep 20, 2018
@dangh dangh deleted the fix/detect-medium-site branch September 20, 2018 11:35
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.

2 participants