From ea31058554a78c4a1016b775bccdef935010c40d Mon Sep 17 00:00:00 2001
From: librelois <elois@ifee.fr>
Date: Wed, 11 Oct 2017 11:21:03 +0200
Subject: [PATCH] [fix] duniter/duniter#1148 add app.js

---
 public/app.js | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/public/app.js b/public/app.js
index b1d93a7..141d863 100644
--- a/public/app.js
+++ b/public/app.js
@@ -1126,7 +1126,8 @@ module.exports = function ($scope, Webmin, heads, info, ws) {
           blockstamp = sp[3];
           uid = value.uid;
         }
-        headsMap[pubkey] = {
+        var ws2pFullId = pubkey + "-" + ws2pId;
+        headsMap[ws2pFullId] = {
           blockstamp: blockstamp, uid: uid, ws2pId: ws2pId, software: software, softVersion: softVersion, prefix: prefix
         };
       }
@@ -1181,7 +1182,7 @@ module.exports = function ($scope, Webmin, heads, info, ws) {
                           $scope.info = _context.sent;
 
                         case 3:
-                        case 'end':
+                        case "end":
                           return _context.stop();
                       }
                     }
@@ -1191,7 +1192,7 @@ module.exports = function ($scope, Webmin, heads, info, ws) {
               $scope.$apply();
 
             case 2:
-            case 'end':
+            case "end":
               return _context2.stop();
           }
         }
@@ -1223,7 +1224,7 @@ module.exports = function ($scope, Webmin, heads, info, ws) {
               $scope.$apply();
 
             case 9:
-            case 'end':
+            case "end":
               return _context3.stop();
           }
         }
-- 
GitLab