fix search highlighting for previous

This commit is contained in:
mappu 2017-12-10 13:57:16 +13:00
parent 3f4d5e2522
commit 3c8631c0d7

View File

@ -66,11 +66,11 @@ function toggleMenu() {
}
function highlightLine(no) {
var lines = $chatArea.innerHTML.split('<br>');
var lines = $chatArea.innerHTML.split("\n");
lines[no] = '<span class="line-highlighted">' + lines[no] + '</span>';
$chatArea.innerHTML = lines.join('<br>');
$chatArea.innerHTML = lines.join("\n");
}
function onLoad() {