mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
fix copy fallback for safari
Signed-off-by: NSStudent <omarmn83@gmail.com>
This commit is contained in:
@@ -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