Fixed notification
This commit is contained in:
parent
78af0c8c72
commit
e00df8d0fc
4
main.js
4
main.js
|
@ -5,9 +5,9 @@ const clipboard = new ClipboardJS(btn);
|
|||
clipboard.on('success', function (e) {
|
||||
console.info('Action:', e.action);
|
||||
console.info('Text:', e.text);
|
||||
new Notification('Notification title', {
|
||||
new Notification('Copied Shorturl', {
|
||||
icon: 'http://cdn.sstatic.net/stackexchange/img/logos/so/so-icon.png',
|
||||
body: 'Hey there! You\'ve been notified!',
|
||||
body: `Copied the shorturl to your clipboard: ${e.text}`,
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue