ï var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https'){ bp.src = 'http