Silly me, I'll append `window.location.protocol` instead.