mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
removal of clipboard write
This commit is contained in:
parent
d953917953
commit
2977f9725b
4 changed files with 0 additions and 36 deletions
13
tabs/cli.js
13
tabs/cli.js
|
@ -70,19 +70,6 @@ function tab_initialize_cli() {
|
|||
|
||||
// give input element user focus
|
||||
$('.tab-cli textarea').focus();
|
||||
|
||||
$('.tab-cli .copy').click(function() {
|
||||
var text = $('.tab-cli .window .wrapper').html();
|
||||
text = text.replace(/<br\s*\/?>/mg,"\n"); // replacing br tags with \n to keep some of the formating
|
||||
|
||||
var copyFrom = $('<textarea/>');
|
||||
|
||||
copyFrom.text(text);
|
||||
$('body').append(copyFrom);
|
||||
copyFrom.select();
|
||||
document.execCommand('copy');
|
||||
copyFrom.remove();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue