blob: cf3e44fd4d773f168dc1254795c23eab8917a4e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
(function notification(text, desc) {
window.addEventListener('mozChromeEvent', function(e) {
var detail = e.detail;
if (detail.type === 'desktop-notification') {
marionetteScriptFinished(JSON.stringify(detail));
}
});
var notify = window.navigator.mozNotification;
var notification = notify.createNotification(
text, desc
);
notification.show();
}.apply(this, arguments));
|