Fallback on 'http:' if window.protocol doesn't match http or https