Skip to content

Node.js based forum software built for the modern web

even:alert socket call -> app.alert

psychobunnyfbbd405b00b6
diff --git a/public/src/app.js b/public/src/app.js
index 5010ead25d..b4a091f960 100644
--- a/public/src/app.js
+++ b/public/src/app.js
@@ -70,6 +70,10 @@ app.cacheBuster = null;
window.location.href = config.relative_path + '/';
}, 1000);
});
+
+ socket.on('event:alert', function(data) {
+ app.alert(data);
+ });
}
function onSocketConnect(data) {