mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 18:35:09 +01:00
Fix comments on PR
This commit is contained in:
parent
2967a29f2e
commit
7ce98d0433
@ -82,7 +82,7 @@ let CCRegisterPiece = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
setDocumentTitle('Register a new piece');
|
setDocumentTitle(getLangText('Register a new piece'));
|
||||||
return (
|
return (
|
||||||
<RegisterPiece
|
<RegisterPiece
|
||||||
enableLocalHashing={false}
|
enableLocalHashing={false}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* @return {int} the number of unread notifications
|
* @return {int} the number of unread notifications
|
||||||
*/
|
*/
|
||||||
export function getUnreadCount() {
|
function getUnreadCount() {
|
||||||
const match = document.title.match(/^\((\d+)\)/);
|
const match = document.title.match(/^\((\d+)\)/);
|
||||||
return match ? match[1] : null;
|
return match ? match[1] : null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user