tweak stuff

This commit is contained in:
Thibault Duplessis 2016-01-27 19:12:42 +07:00
parent 28e7af8be5
commit 4adc4add3c

View file

@ -35,7 +35,7 @@ function find(el, d) {
[].forEach.call(el.querySelectorAll('square'), function(n) { [].forEach.call(el.querySelectorAll('square'), function(n) {
w = n.offsetWidth; w = n.offsetWidth;
if (!done && prev && w !== prev) { if (!done && prev && w !== prev) {
if (window.getComputedStyle(n, null).getPropertyValue("border")[0] !== '0') { if (window.getComputedStyle(n, null).getPropertyValue("border")[0] !== '0' && !n.classList.contains('last-move')) {
done = true; done = true;
$.post('/jslog/' + d.game.id + d.player.id); $.post('/jslog/' + d.game.id + d.player.id);
} }