Setting up sharethis to use http or https, depending on environment