-
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
Add iOS Request Interception #33
base: trunk
Are you sure you want to change the base?
Conversation
ac9d15f
to
8ed393e
Compare
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.
You mentioned being unhappy, which aspects of this approach cause that?
// We care about WordPress.com resources – let's modify those if needed | ||
if request.url?.host?.contains("wordpress.com") == true { |
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.
Eventually, we should hoist this conditional into the host app, as we want to avoid such references in Gutenberg.
// We don't want to interfere with loading the editor JS | ||
guard request.url?.host != "localhost" else { |
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 development server can also be an IP when testing with a physical device. Maybe we can check against the GUTENBERG_EDITOR_URL
environment variable as well?
No description provided.