open view links in new window

This commit is contained in:
Ryan Peters 2021-07-22 21:57:13 -04:00
parent 38a151e872
commit 5a01234807

View File

@ -85,7 +85,7 @@
let usersList = Object.values(users)
.filter(u => u.name !== '')
.map(u => `<a href="/view/${u.id}" style="color: ${u.color};" title="${u.color}">${u.name}</a>`);
.map(u => `<a target="_blank" href="/view/${u.id}" style="color: ${u.color};" title="${u.color}">${u.name}</a>`);
$usersList.html(`<strong>${usersList.length} users online:</strong> ${usersList.join(', ')}`);