From 80b7eedfd414c122038def7ec9e229766219be92 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 16 Nov 2014 13:39:49 +0100 Subject: [PATCH 1/1] Fix a display bug on empty PV. --- www/js/remoteglot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index 3bff1ff..f88e1e0 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -440,7 +440,7 @@ var print_pv = function(line_num, pretty_pv, move_num, toplay, opt_limit, opt_sh ++i; } move_num += i / 2; - } else if (toplay == 'B') { + } else if (toplay == 'B' && pretty_pv.length > 0) { var move = "" + pretty_pv[0] + ""; pv = move_num + '. … ' + move; toplay = 'W'; -- 2.39.2