forked from khalid79/email_extractor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
background.js
30 lines (25 loc) · 974 Bytes
/
background.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* test background code --> ok
setInterval(function(){
var d = new Date();
chrome.browserAction.setBadgeText({'text': String(d.getMinutes())});
},
3000
);
*/
//////////////////////////// notification START test --> ok ////////////////////////////////////////
// Note: There's no need to call webkitNotifications.checkPermission().
// Extensions that declare the notifications permission are always
// allowed create notifications.
// Create a simple text notification:
var notification = webkitNotifications.createNotification(
'img/icon_48_48.png', // icon url - can be relative
'Hello!', // notification title
'Lorem ipsum...' // notification body text
);
// Or create an HTML notification:
var notification = webkitNotifications.createHTMLNotification(
'notification.html' // html url - can be relative
);
// Then show the notification.
//notification.show();
//////////////////////////// notification END ////////////////////////////////////////