mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 00:45:47 +01:00
temp fix to resolve socket js error
This commit is contained in:
@@ -196,6 +196,8 @@ var socket,
|
|||||||
|
|
||||||
app.current_room = null;
|
app.current_room = null;
|
||||||
app.enter_room = function(room) {
|
app.enter_room = function(room) {
|
||||||
|
|
||||||
|
if(socket) {
|
||||||
if (app.current_room === room)
|
if (app.current_room === room)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -205,6 +207,7 @@ var socket,
|
|||||||
});
|
});
|
||||||
|
|
||||||
app.current_room = room;
|
app.current_room = room;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
app.process_page = function() {
|
app.process_page = function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user