diff options
| author | Teddy Wing | 2013-03-25 02:09:58 -0400 |
|---|---|---|
| committer | Teddy Wing | 2013-03-25 02:09:58 -0400 |
| commit | 46c32a0728414a82560e3a521be61207fe6a727e (patch) | |
| tree | 3ced2397190c80480f6e7802ee2e48a951066669 /better-scrumdo-background.js | |
| parent | 7aa3121d48aa3399518e9a82d981edaee3a8d7ba (diff) | |
| download | ScrumDo-Trellic-46c32a0728414a82560e3a521be61207fe6a727e.tar.bz2 | |
Add options page
A minimal, unstyled options page for the extension is now accessible
via the Chrome Extensions panel. This options page allows users to
customise the refresh interval of the ScrumDo board page.
Diffstat (limited to 'better-scrumdo-background.js')
| -rw-r--r-- | better-scrumdo-background.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/better-scrumdo-background.js b/better-scrumdo-background.js index faec893..9082913 100644 --- a/better-scrumdo-background.js +++ b/better-scrumdo-background.js @@ -17,4 +17,17 @@ } }); }); + + + // set interval value + chrome.extension.onMessage.addListener( + function(request, sender, send_response) { + if (request.get_option) { + resp_hash = {}; + resp_hash[request.get_option] = localStorage[request.get_option]; + + send_response(resp_hash); + } + } + ); })();
\ No newline at end of file |
