Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change qr code to bitcoin:address

  • Loading branch information...
commit 962ca51b79dfd25de1a53e68ffddd80f65abcc7b 1 parent 4d4e3ed
tcatm authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  bitcoinapp.js
View
3  bitcoinapp.js
@@ -77,10 +77,11 @@ function BitcoinApp() {
this.showQRAddress = function() {
var address = $('#address').text();
if (address != "") {
+ var uri = "bitcoin:" + address;
var width = $(window).width();
var height = $(window).height();
var size = Math.min(width, height, 540);
- var QRurl = 'https://chart.googleapis.com/chart?chs=' + size + 'x' + size + '&cht=qr&chl=' + address + '&choe=UTF-8';
+ var QRurl = 'https://chart.googleapis.com/chart?chs=' + size + 'x' + size + '&cht=qr&chl=' + uri + '&choe=UTF-8';
this.showFullscreenObj($('<img src="' + QRurl + '" />'));
} else {
this.warning("No address found!");
Please sign in to comment.
Something went wrong with that request. Please try again.