Skip to content
Snippets Groups Projects
Commit 9edf9ace authored by psy's avatar psy
Browse files

move qrcode variable out of function

parent f337aa42
Branches
Tags
No related merge requests found
Pipeline #6257 passed
......@@ -20,8 +20,9 @@
<script type="text/javascript" src="js/qrcode.min.js"></script>
<script type="text/javascript">
var qrcode;
function generateQR() {
var qrcode = new QRCode(document.getElementById("qrcode"), location.hash.substring(1));
qrcode = new QRCode(document.getElementById("qrcode"), location.hash.substring(1));
}
$( document ).ready(function() {
generateQR();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment