Improve Google pagespeed score and fix small bugs

This commit is contained in:
2016-12-27 05:50:48 +00:00
parent b84a94ef55
commit 8440fb036b
4 changed files with 12 additions and 12 deletions

View File

@@ -35,7 +35,7 @@ export default class Home extends React.Component {
<p>
Add this line to your <code className="smallcode">.bashrc</code> file:<br />
<code>
notica() &#123; curl --data "d:$@" https://notica.us/{id}; &#125;
notica() &#123; curl --data "d:$*" https://notica.us/{id}; &#125;
</code>
</p>
<p>
@@ -51,7 +51,7 @@ export default class Home extends React.Component {
<p>
Run this command: <br />
<code>
$ echo 'notica() &#123; curl --data "d:$@" https://notica.us/{id}; &#125;' >> ~/.bashrc && source ~/.bashrc
$ echo 'notica() &#123; curl --data "d:$*" https://notica.us/{id}; &#125;' >> ~/.bashrc && source ~/.bashrc
</code>
</p>
<p>Go to this link to receive your notifications (bookmark it since it's yours): <Link to={'/' + id}>https://notica.us/{id}</Link></p>

View File

@@ -38,8 +38,8 @@ export default class NotifPage extends React.Component {
socket.on('message', (data) => {
console.log("Notification: " + data);
checkperm(Notification.permission);
sendNotification(data);
this.checkperm(Notification.permission);
this.sendNotification(data);
});
}