Trying to normalize event handling somewhat. More to go before it's simple.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3685 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2021-11-07 22:28:58 +00:00
parent 68cf3efcde
commit 18c90214a8
5 changed files with 284 additions and 149 deletions

View File

@ -425,13 +425,13 @@ async function blobHandler(request, response, blobId, uri) {
}
}
ssb.onBroadcastsChanged = function() {
ssb.addEventListener('broadcasts', function() {
broadcastEvent('onBroadcastsChanged', []);
}
});
ssb.onConnectionsChanged = function() {
ssb.addEventListener('connections', function() {
broadcastEvent('onConnectionsChanged', []);
}
});
async function loadSettings() {
try {