From 339341539aba0ccb2520cd46a91bdd5b8c9344bf Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 24 Dec 2022 00:20:13 +0100 Subject: [PATCH] Fix highlight removals. --- 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 f78078f..624156b 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -793,7 +793,7 @@ var print_pv = function(line_num, splicepos, opt_limit, opt_showlast) { * Based on the global "highlight_from" and "highlight_to" variables. */ var update_board_highlight = function() { - document.getElementById("board").querySelector('.square-55d63').classList.remove('nonuglyhighlight'); + document.getElementById("board").querySelectorAll('.square-55d63').forEach((square) => square.classList.remove('nonuglyhighlight')); if ((current_display_line === null || current_display_line_is_history) && highlight_from !== undefined && highlight_to !== undefined) { document.getElementById("board").querySelector('.square-' + highlight_from).classList.add('nonuglyhighlight'); -- 2.39.2