mirror of
https://github.com/OpenBankProject/API-Explorer.git
synced 2026-02-06 10:47:23 +00:00
feature/Tweak the function copyJsonResultToClipboard
This commit is contained in:
parent
aa4fea20d4
commit
8576181030
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user