From e00df8d0fcb3a914f046316e4e7bea48041e299e Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Sat, 14 Aug 2021 15:31:52 +0200 Subject: [PATCH] Fixed notification --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 76ad266..e4d2fd4 100644 --- a/main.js +++ b/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}`, }); });