So I managed to use the below code to have a QR code scanner on my website. However, I can't get it to open the URL's in the QR codes. I need it to only open URL's that goes to my website. What do I need to change after the if statement?
You can try...
window.location.replace(String(content));
it is suggested to use === (strict equality operator) to ensure content is a string.