Improve clarity

This commit is contained in:
Richard Lewis 2017-08-01 17:49:41 +01:00
parent f0224460d2
commit 2ab6bc84a7

View file

@ -75,7 +75,7 @@ export default React.createClass({
const parentContentProtocol = window.location.protocol;
const u = url.parse(this.props.url);
const childContentProtocol = u.protocol;
if (parentContentProtocol === 'https:' && childContentProtocol !== parentContentProtocol) {
if (parentContentProtocol === 'https:' && childContentProtocol !== 'https:') {
console.warn("Refusing to load mixed-content app:", parentContentProtocol, childContentProtocol, window.location, this.props.url);
return true;
}