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

Update js_bridge.js #26

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

Conversation

ionspicica
Copy link

when we pass parameters containing space it needs to encode url otherwise we get errors

when we transmit parameters that contain space we need to encode uri
Copy link
Owner

@stewartpark stewartpark left a comment

Choose a reason for hiding this comment

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

Not sure if encoding the whole URL at the end would have any downsides, compared to this previous PR(left undone, but tries to encode each component). Do you have any thoughts on this?

The test failure is unrelated to the change, it'll be fixed if you rebase. Once the test passes and the comment addressed, I'll get this one merged and create a new release.

Thanks for the contribution!

@@ -80,7 +80,7 @@ var {{ namespace }} = new(function () {
if (is_absolute) {
return scheme + "://" + location.host + url;
Copy link
Owner

Choose a reason for hiding this comment

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

Should we also encode this as well?

@stewartpark
Copy link
Owner

Fixes #12

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