tweak stuff

pull/1537/head
Thibault Duplessis 2016-01-27 19:12:42 +07:00
parent 28e7af8be5
commit 4adc4add3c
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ function find(el, d) {
[].forEach.call(el.querySelectorAll('square'), function(n) {
w = n.offsetWidth;
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;
$.post('/jslog/' + d.game.id + d.player.id);
}