mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-23 04:18:21 +00:00
[fix repo-update-toast bug] remove unnecessary listener&function (#2765)
This commit is contained in:
@@ -18,10 +18,10 @@ class CollabServer {
|
||||
contact_email: contactEmail,
|
||||
},
|
||||
});
|
||||
socket.on('repo_update', fn)
|
||||
socket.on('repo_update', fn);
|
||||
}
|
||||
|
||||
unwatchRepo(repoID) {
|
||||
unwatchRepo(repoID, fn) {
|
||||
if (!socket) {
|
||||
return;
|
||||
}
|
||||
@@ -34,6 +34,7 @@ class CollabServer {
|
||||
contact_email: contactEmail,
|
||||
},
|
||||
});
|
||||
socket.off('repo_update', fn);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user