mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-10-16 16:56:24 +00:00
fix copy fallback for safari
Signed-off-by: NSStudent <omarmn83@gmail.com>
This commit is contained in:
1 parent
7ce8be1d2f
commit
8ba07f0d59
1 file changed
+1
@@ -32,6 +32,7 @@ async function copyCodeToClipboard(button, highlightDiv) {
|
||||
const sel = window.getSelection();
|
||||
sel.removeAllRanges();
|
||||
sel.addRange(range);
|
||||
textArea.focus();
|
||||
textArea.setSelectionRange(0, 999999);
|
||||
document.execCommand("copy");
|
||||
highlightDiv.removeChild(textArea);
|
||||
|
||||
Reference in new issue
Block a user