What they have:
(false ? 'https' : window.location.protocol == 'https' ? 'https' : 'http') + '://'
What they should have:
(false ? 'https' : window.location.protocol == 'https:' ? 'https' : 'http') + '://'
A subtle missing colon means everything will go to http. One of my team spotted the issue, so I can't take credit for working it out.