Skip to content

Commit

Permalink
Use new UI library instead of deprecated widget one.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergi committed Jun 10, 2014
1 parent 7704971 commit a5e84c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ function grenade() {
}
}

require('toolbarwidget').ToolbarWidget({
toolbarID: 'nav-bar', // <-- Place widget on Navigation bar
var ui = require('sdk/ui');
var grenadeButton = ui.ActionButton({
id: 'tab-grenade1',
label: 'Tab Grenade',
contentURL: self.data.url('grenade-32.png'),
icon: self.data.url('grenade-32.png'),
onClick: grenade
});

Expand Down

0 comments on commit a5e84c9

Please sign in to comment.