Copy the content when clicking in the text area
This commit is contained in:
6
popup.js
6
popup.js
@@ -27,11 +27,17 @@ async function guess(){
|
||||
chrome.storage.local.set({[pageURL]: historyData}, function () {});
|
||||
}
|
||||
|
||||
function copyResult(){
|
||||
this.select();
|
||||
navigator.clipboard.writeText(this.value);
|
||||
}
|
||||
|
||||
if(psshs.length!=0){
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
document.getElementById('noEME').style.display='none';
|
||||
document.getElementById('home').style.display='block';
|
||||
document.getElementById('guess').addEventListener("click", guess);
|
||||
document.getElementById('result').addEventListener("click", copyResult);
|
||||
drawList(psshs,'psshSearch','psshList','pssh');
|
||||
drawList(requests.map(r => r['url']),'requestSearch','requestList','license');
|
||||
if(psshs.length==1){
|
||||
|
||||
Reference in New Issue
Block a user