Better id
This commit is contained in:
parent
2b536a7443
commit
3aef5e6748
5 changed files with 7 additions and 7 deletions
|
@ -64,14 +64,14 @@ module.exports = (server: http.Server) => {
|
|||
}));
|
||||
};
|
||||
|
||||
main.connectChannel(Math.random().toString(), null,
|
||||
main.connectChannel(Math.random().toString().substr(2, 8), null,
|
||||
request.resourceURL.pathname === '/' ? 'homeTimeline' :
|
||||
request.resourceURL.pathname === '/local-timeline' ? 'localTimeline' :
|
||||
request.resourceURL.pathname === '/hybrid-timeline' ? 'hybridTimeline' :
|
||||
request.resourceURL.pathname === '/global-timeline' ? 'globalTimeline' : null);
|
||||
|
||||
if (request.resourceURL.pathname === '/') {
|
||||
main.connectChannel(Math.random().toString(), null, 'main');
|
||||
main.connectChannel(Math.random().toString().substr(2, 8), null, 'main');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue