Making sharethis ssl compatible

This commit is contained in:
Amauri CHAMPEAUX 2014-09-25 16:43:33 +02:00
parent d7dd8d7d96
commit c00916e62e
1 changed files with 3 additions and 2 deletions

View File

@ -29,8 +29,9 @@ tarteaucitron.services.sharethis = {
if (tarteaucitron.user.sharethisPublisher === undefined) { if (tarteaucitron.user.sharethisPublisher === undefined) {
return; return;
} }
var switchTo5x = true; var switchTo5x = true,
tarteaucitron.addScript('http://w.sharethis.com/button/buttons.js', '', function () { uri = ('https:' === document.location.protocol ? 'https://ws' : 'http://w') + '.sharethis.com/button/buttons.js';
tarteaucitron.addScript(uri, '', function () {
stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false}); stLight.options({publisher: tarteaucitron.user.sharethisPublisher, doNotHash: false, doNotCopy: false, hashAddressBar: false});
}); });
} }