You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 24, 2018. It is now read-only.
I'm currently trying to embed swagger-editor in node-webkit, and I'm having trouble with the "file" scheme, as I'm currently getting a The 'file' scheme is not supported in the browser error when using a file://location.
I can understand why the code cannot use fs, as it's in a worker. But it seems to me it could nonetheless try using a xhr request for filerequests.
Is there any way I could submit a merge request for that?
The text was updated successfully, but these errors were encountered:
the way this module is built is just sway.min.js + a little worker API at the end. Any issues you have is possibly because of Sway. More likely Sway in a web worker context.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
How was/is built this index.js file? I can see that the code is not exactly the same as the code from the libs it seems to be built on.
For instance, the way it handles the "file" scheme for json-refs is not the same as the one from path-loader (https://github.com/whitlockjc/path-loader/blob/v1.0.1/lib/loaders/file.js).
I'm currently trying to embed swagger-editor in node-webkit, and I'm having trouble with the "file" scheme, as I'm currently getting a
The 'file' scheme is not supported in the browser
error when using afile://
location.I can understand why the code cannot use
fs
, as it's in a worker. But it seems to me it could nonetheless try using a xhr request forfile
requests.Is there any way I could submit a merge request for that?
The text was updated successfully, but these errors were encountered: