Removed NBSP while coping info to clipboard

Signed-off-by: Parth Raiyani <pmr642001@gmail.com>
Change-Id: I2566a4902ed36e53ad2acfbe1c32efccb04bddda
This commit is contained in:
Parth Raiyani 2023-08-05 13:24:37 +00:00 committed by Miklos Vajna
parent 5525ffab36
commit 0f749d45a8

View file

@ -845,6 +845,7 @@ L.Map.include({
text += 'LOKit version: ' + this.getVersionInfoFromClass('lokit-version') + '\n';
text += 'Served by: ' + document.getElementById('os-info').innerText + '\n';
text += 'Server ID: ' + document.getElementById('coolwsd-id').innerText + '\n';
text = text.replace(/\u00A0/g, ' ');
if (navigator.clipboard && window.isSecureContext) {
navigator.clipboard.writeText(text)