mirror of
https://github.com/timvisee/send.git
synced 2026-04-26 22:56:21 -04:00
Merge remote-tracking branch 'origin/master' into shim-webcrypto
This commit is contained in:
@@ -127,12 +127,12 @@ function copyToClipboard(str) {
|
||||
sel.removeAllRanges();
|
||||
sel.addRange(range);
|
||||
aux.setSelectionRange(0, str.length);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
aux.select();
|
||||
}
|
||||
document.execCommand('copy');
|
||||
const result = document.execCommand('copy');
|
||||
document.body.removeChild(aux);
|
||||
return result;
|
||||
}
|
||||
|
||||
const ONE_DAY_IN_MS = 86400000;
|
||||
|
||||
Reference in New Issue
Block a user