blob: 0d1740401c7d4626a0d7f1c05c4f4e2b1e49c132 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/*
* Copyrights Loic J. Duros 2012
* lduros@member.fsf.org
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var self = require("sdk/self");
var notification = require("notification-box").NotificationBox({
'value': 'important-message',
'label': 'You have been warned...',
'priority': 'WARNING_HIGH',
'image': self.data.url("gnu-icon.png"),
'buttons': [{'label': "Gotcha",
'onClick': function () { console.log("You clicked the important button!"); }}]
});
|