feature/Tweak the function copyJsonResultToClipboard

This commit is contained in:
Marko Milić 2023-03-21 10:30:16 +01:00
parent aa4fea20d4
commit 8576181030

View File

@ -279,7 +279,7 @@ function copyJsonResultToClipboard(element) {
r.selectNode(document.getElementById(id));
window.getSelection().removeAllRanges();
window.getSelection().addRange(r);
document.execCommand('copy');
navigator.clipboard.writeText(window.getSelection().toString());
window.getSelection().removeAllRanges();
// Store original values
var titleText = document.getElementById(element.id).title;