Commit 1349dce2 authored by Vadim's avatar Vadim

Version 0.10.2

Исправлен баг, при котором не учитывалось собственное присутствие на странице.
parent 393441a1
......@@ -38,7 +38,7 @@ if ( !defined('ABSPATH') ) {
die( 'Sorry, you are not allowed to access this page directly.' );
}
define('BG_COUNTER_VERSION', '0.10.0');
define('BG_COUNTER_VERSION', '0.10.2');
define('BG_COUNTER_LOG', dirname(__FILE__ ).'/bg_counter.log');
define('BG_COUNTER_STAT_COUNTERS','https://stat.azbyka.ru/counters');
define('BG_COUNTER_STAT_RAITING','https://stat.azbyka.ru/rating');
......
jQuery( document ).ready(function() {
if (bg_counter.ID) {
SendOnce(bg_counter.type, bg_counter.ID);
var request = bg_counter.websocket+bg_counter.project+"/"+bg_counter.type+"/"+bg_counter.ID;
var socket = new WebSocket(request);
socket.onopen = function() {
if (bg_counter.debug) console.log(" Соединение установлено. "+request);
if (bg_counter.debug) console.log(" Соединение установлено. "+request);
GetAllCounter();
};
SendOnce(bg_counter.type, bg_counter.ID);
}
}
GetAllCounter();
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment