Slow Performance Fixed

This commit is contained in:
Donald Cheng Hong Zou
2021-12-23 21:26:24 -05:00
parent 78d3f338fb
commit 34cd3aaaca
7 changed files with 235 additions and 86 deletions

View File

@@ -107,8 +107,14 @@ var qrcodeModal = new bootstrap.Modal(document.getElementById('qrcode_modal'), {
// QR Code
$("body").on("click", ".btn-qrcode-peer", function (){
qrcodeModal.toggle();
$("#qrcode_img").attr('src', $(this).attr('img_src'))
var src = $(this).attr('img_src');
$.ajax({
"url": src,
"method": "GET"
}).done(function(res){
$("#qrcode_img").attr('src', res)
qrcodeModal.toggle();
})
})
// Delete Peer Modal