1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00

Fix comments on PR

This commit is contained in:
vrde 2015-10-19 17:24:49 +02:00
parent 2967a29f2e
commit 7ce98d0433
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ let CCRegisterPiece = React.createClass({
},
render() {
setDocumentTitle('Register a new piece');
setDocumentTitle(getLangText('Register a new piece'));
return (
<RegisterPiece
enableLocalHashing={false}

View File

@ -6,7 +6,7 @@
*
* @return {int} the number of unread notifications
*/
export function getUnreadCount() {
function getUnreadCount() {
const match = document.title.match(/^\((\d+)\)/);
return match ? match[1] : null;
}