URI: 
       tprevent websocket closing with balnk target - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit e6924d991254d0a7e6c5fb84e14241081123507a
   DIR parent 3da148f4063f2910aedf443f06a50946903e91de
  HTML Author: ThomasV <thomasv1@gmx.de>
       Date:   Fri, 24 Jul 2015 13:30:51 +0200
       
       prevent websocket closing with balnk target
       
       Diffstat:
         M lib/www/index.html                  |      11 ++++++++++-
       
       1 file changed, 10 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/lib/www/index.html b/lib/www/index.html
       t@@ -73,6 +73,15 @@ ws.onmessage = function (evt) {
                    else alert("Message is received:"+ received_msg);
        };
        
       +
       +// See http://stackoverflow.com/questions/29186154/chrome-clicking-mailto-links-closes-websocket-connection
       +$(document).on('click', 'a[href^="bitcoin:"]', function (e) {
       +    e.preventDefault();
       +    var btcWindow = window.open($(e.currentTarget).attr('href'));
       +    btcWindow.close();
       +    return false;
       +});
       +
        </script>
            </head>
            <body>
       t@@ -81,7 +90,7 @@ ws.onmessage = function (evt) {
                    <p id="reason"></p>
                    <p id="amount"></p>
                    <div style="background-color:#7777aa; border-radius: 5px; padding:10px;">
       -                <a style="color:#ffffff; text-decoration:none;" id="paylink">Pay with Bitcoin</a>
       +                <a style="color:#ffffff; text-decoration:none;" id="paylink" target="_blank">Pay with Bitcoin</a>
                    </div>
                    <br/>
                    <div id="qrcode" align="center"></div>