Skip to content

Commit

Permalink
Removed NBSP while coping info to clipboard
Browse files Browse the repository at this point in the history
Signed-off-by: Parth Raiyani <[email protected]>
Change-Id: I2566a4902ed36e53ad2acfbe1c32efccb04bddda
  • Loading branch information
rparth07 committed Mar 10, 2024
1 parent 1a0fc1b commit 5cfb459
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions browser/src/control/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,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)
Expand Down

0 comments on commit 5cfb459

Please sign in to comment.