tweak stuff
This commit is contained in:
parent
28e7af8be5
commit
4adc4add3c
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue