Improve Google pagespeed score and fix small bugs
This commit is contained in:
@@ -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() { curl --data "d:$@" https://notica.us/{id}; }
|
||||
notica() { curl --data "d:$*" https://notica.us/{id}; }
|
||||
</code>
|
||||
</p>
|
||||
<p>
|
||||
@@ -51,7 +51,7 @@ export default class Home extends React.Component {
|
||||
<p>
|
||||
Run this command: <br />
|
||||
<code>
|
||||
$ echo 'notica() { curl --data "d:$@" https://notica.us/{id}; }' >> ~/.bashrc && source ~/.bashrc
|
||||
$ echo 'notica() { curl --data "d:$*" https://notica.us/{id}; }' >> ~/.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>
|
||||
|
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user