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
Avoid hardcoded window.location.protocol
#16
Comments
Currently experiencing the same issue using Electron (or Node WebKit for that matter). |
👍 |
Same issue... quite a show stopper. Any word on this? 👍👍👍 |
I've been using my own simple module for now, but I'm happy to take a look at this and send a PR if they're being looked at (I see a few PR's open from years ago). |
Yeah seeing this as well with Electron |
Here's a patched copy of the minified API which I bundled as a node module: https://github.com/angusfretwell/soundcloud-cordova-sdk Suppose I should remove Cordova from the name of the package since this problem isn't really specific to Cordova 😅 |
Currently in the SDK protocol is hardcoded (a lot of
window.location.protocol
references). This makes the SDK unusable in Apache Cordova - as apps there have afile://
protocol.A simple fix replacing all
window.location.protocol
with f.e.SC.options.protocol
would be sufficient.The text was updated successfully, but these errors were encountered: