Better id

This commit is contained in:
syuilo
2018-10-13 19:16:47 +09:00
parent 2b536a7443
commit 3aef5e6748
5 changed files with 7 additions and 7 deletions

View File

@ -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');
}
}