Fixed notification

This commit is contained in:
Nicolai Ort 2021-08-14 15:31:52 +02:00
parent 78af0c8c72
commit e00df8d0fc
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
1 changed files with 2 additions and 2 deletions

View File

@ -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}`,
});
});