Skip to content

Commit

Permalink
added pref to addon menu
Browse files Browse the repository at this point in the history
  • Loading branch information
swdyh committed May 26, 2012
1 parent 822c717 commit 6c73af5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var panels = require('panel')
var tabs = require('tabs')
var url = require('url')
var {Cc, Ci} = require('chrome')
var observerService = require("api-utils/observer-service")

var SITEINFO_IMPORT_URLS = [
'http://wedata.net/databases/AutoPagerize/items_all.json',
Expand Down Expand Up @@ -117,6 +118,10 @@ exports.main = function (options, callbacks) {
}
}
})

observerService.add(self.id + '-cmdPressed', function(sub, name) {
configPanel.show()
})
}

function onAttach(worker) {
Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,11 @@
"description": "A browser Extension for auto loading paginated web pages",
"icon": "data/icons/icon_032.png",
"url": "http://autopagerize.net/",
"author": "swdyh"
"author": "swdyh",
"preferences": [{
"name": "openPref",
"title": "",
"label": "Open AutoPagerize preferences",
"type": "control"
}]
}

0 comments on commit 6c73af5

Please sign in to comment.