-
Notifications
You must be signed in to change notification settings - Fork 110
Closed
Labels
Description
If a protocol relative URL is provided to ImageWorker from WebPlatform.loadSrcTexture the image is loaded via http even if the app is loaded via https.
to
let finalSrc = src;
if (/^\/\//.test(finalSrc)) {
finalSrc = window.location.protocol + src;
}
const image = this._imageWorker.create(finalSrc);
I've implemented a workaround (read monkeypatch) for this in the app I'm working on, but since WebPlatform isn't exported it's not pretty. In addition to fixing the underlying issue, please consider exporting WebPlatform so it could be extended and passed in as a stage option instead of having to copy it.
I can also PR the proposed fixes if you'd like, but I wanted to file the issue first.