Skip to content

Commit ba29952

Browse files
committed
Update requests.js
1 parent 5c89e35 commit ba29952

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/js/requests.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -492,11 +492,11 @@ function copyToClipboard(index) {
492492

493493
let copyText = ""; // Initialize copyText variable
494494
// Todo
495-
if (index == NONE){
495+
if (index === null){
496496
for (const index of selectedRows) {
497497
const entry = appEntriesDataGlobal[index];
498498
if (isShowingMatches) {
499-
copyText = `${entry.appfilter}`;
499+
copyText += `${entry.appfilter}`;
500500
} else {
501501
copyText += `${entry.appNameAppfilter}\n${entry.appfilter}\n`;
502502
}
@@ -524,9 +524,7 @@ function copyToClipboard(index) {
524524
console.error('Unable to copy to clipboard:', error);
525525
});
526526
}
527-
setTimeout(() => {
528-
document.getElementById('copy-notification').style.display = 'none';
529-
}, 3000);
527+
530528
// Copy Selected to clipboard function
531529
function copySelectedToClipboard() {
532530
var copyText = "";

0 commit comments

Comments
 (0)