-
Notifications
You must be signed in to change notification settings - Fork 86
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
Open in editor breaks if data is not available #55
Comments
will take a look... |
Seems like we could test the spec for @domoritz, does this approach fit your expectation? |
We should avoid reading the spec. I suggest that we create our own vega loader that checks a relative URL and attaches the baseurl of the post sender if the relative URL returns a 404. This should be done in the editor (https://github.com/vega/editor). Vega embed only needs to be changed to send the baseurl (I don't know whether post already does that, haven't checked). |
I just checked that Vega embed is already sending the baseURL of sender in the post request. So, I think no change needed here. |
Sweet. I guess it's coming in via the POST message, right? |
Done in editor. |
Since URLs in Vega or Vega-Lite specs can be relative, the URLs may not be correct. We could either use the origin URL as the baseurl or send the data along when a spec is opened in the editor.
The text was updated successfully, but these errors were encountered: