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(bookmarklet): Support 'file' protocol #132

Merged
merged 1 commit into from
Mar 15, 2019

Conversation

ccarpita
Copy link
Contributor

@ccarpita ccarpita commented Oct 8, 2018

The bookmarklet currently uses a protocol-independent URL to load the source, which means that pages viewed locally (file:///) will attempt to also load the library from the file tree, rather than the CDN. There is no compelling reason to load the asset on http vs https, even when viewing a plain-http page, and thus the protocol should be set to https explicitly.

This change fixes #130

  • CLA Signed
  • Tested on file:/// page
  • Tested on https:// page
  • Tested on http:// page

The bookmarklet currently uses a protocol-independent URL to load the source, which means that pages viewed locally (`file:///`) will attempt to also load the library from the file tree, rather than the CDN. There is no compelling reason to load the asset on http vs https, even when viewing a plain-http page, and thus the protocol should be set to https explicitly.

Fixes jdan#130
@khanbot
Copy link

khanbot commented Oct 8, 2018

CLA signature looks good 👍

Copy link
Contributor

@somewhatabstract somewhatabstract left a comment

Choose a reason for hiding this comment

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

Thanks for this contribution, @ccarpita! Great stuff!

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