@cocreate/users
Advanced tools
Comparing version 1.37.2 to 1.37.3
{ | ||
"name": "@cocreate/users", | ||
"version": "1.37.2", | ||
"version": "1.37.3", | ||
"description": "A simple users component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -461,7 +461,6 @@ /*globals CustomEvent, btoa*/ | ||
Observer.init({ | ||
name: 'CoCreateElementsRemovedNodes', | ||
observe: ['addedNodes'], | ||
target: '[session]', | ||
callback: () => { | ||
let checkSessionTimeout | ||
function checkSession() { | ||
clearTimeout(checkSessionTimeout); | ||
checkSessionTimeout = setTimeout(function () { | ||
Crud.socket.send({ | ||
@@ -472,2 +471,11 @@ method: 'checkSession', | ||
}); | ||
}, 500); | ||
} | ||
Observer.init({ | ||
name: 'CoCreateUserSessionAddedNodes', | ||
observe: ['addedNodes'], | ||
target: '[session]', | ||
callback: () => { | ||
checkSession(); | ||
} | ||
@@ -474,0 +482,0 @@ }); |
Sorry, the diff of this file is too big to display
216284
928