Use .setAttribute() for QR code address parser

This commit is contained in:
JonnyWong16 2023-03-03 22:25:01 -08:00
parent 4274a29bd6
commit 3d2959ee51
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -70,7 +70,7 @@ DOCUMENTATION :: END
function checkQRAddress(url) {
var parser = document.createElement('a');
parser.href = url;
parser.setAttribute('href', url);
var hostname = parser.hostname;
var protocol = parser.protocol;