Disable Odnoklassniki counter on HTTPS because of redirect to HTTP.

master
Artem Sapegin 2015-03-10 11:21:48 +03:00
parent 1be1381eb6
commit e4025f021f
1 changed files with 2 additions and 3 deletions

View File

@ -95,9 +95,8 @@
popupHeight: 330 popupHeight: 330
}, },
odnoklassniki: { odnoklassniki: {
// connect.ok.ru works on mobiles but doesnt work with HTTPS // HTTPS not supported
// www.ok.ru works with HTTPS but redirects to HTML page on mobiles counterUrl: isHttps ? undefined : 'http://connect.ok.ru/dk?st.cmd=extLike&ref={url}&uid={index}',
counterUrl: (isHttps ? 'https://www' : 'http://connect') + '.ok.ru/dk?st.cmd=extLike&ref={url}&uid={index}',
counter: function(jsonUrl, deferred) { counter: function(jsonUrl, deferred) {
var options = services.odnoklassniki; var options = services.odnoklassniki;
if (!options._) { if (!options._) {