fixed an issue with Logger.io_close, needed to check for undefined on the socket.oEmit and socket. functions

v1.18.x
Andrew Darqui 11 years ago
parent 0b299b2fe7
commit 129af904f6

@ -40,10 +40,7 @@
<button class="btn btn-lg btn-primary" id="save">Save</button>
<script>
var loadDelay = setInterval(function() {
if (nodebb_admin) {
nodebb_admin.prepare();
clearInterval(loadDelay);
}
}, 500);
require(['forum/admin/settings'], function(Settings) {
Settings.prepare();
});
</script>

@ -139,10 +139,10 @@ var opts = {
for(var v in clients) {
var client = clients[v];
if(client.oEmit != client.emit)
if(client.oEmit != undefined && client.oEmit != client.emit)
client.emit = client.oEmit;
if(client.$oEmit != client.$emit)
if(client.$oEmit != undefined && client.$oEmit != client.$emit)
client.$emit = client.$oEmit;
}
}

Loading…
Cancel
Save