-
Notifications
You must be signed in to change notification settings - Fork 2
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(extension): #107: allow http for localhost #129
Conversation
|
apps/extension/public/manifest.json
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'd like to condition the manifest inclusion of localhost
but that would require some additional build config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you mean by this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the ValidSender type needs correction but other than that, this would work
@@ -13,6 +13,10 @@ type ValidSender = chrome.runtime.MessageSender & { | |||
url: `${ValidProtocol}//${string}/${string}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the origin/url type are incorrect now that validprotocol may conditionally be http at any moment. i don't think it matters anywhere so probably just set these to 'string'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed to string
@turbocrime pinging for your re-review |
f0198bb
to
e9019d1
Compare
Closes #107
assertValidSender
function to allow http://localhost