Commit d7f54c2b authored by Adrien Dorsaz's avatar Adrien Dorsaz

fix javascript syntax

parent 8d8edf8a
......@@ -29,7 +29,7 @@ class Entity {
let name = _identity.getAttribute('name');
let node = _identity.getAttribute('node');
let idKey = ['type': type, 'category': category, 'node': node];
let idKey = {'type': type, 'category': category, 'node': node};
let identity = this.identities.get(idKey)
if (identity) {
......
......@@ -42,6 +42,7 @@ class Network {
service["leaves"] = new Map();
this.pubsub.set(_netElement.jid, service);
}
}
}
if (this.pubsub.has(_netElement.jid)){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment