neocotic/template — Issue #83: Fetch OAuth details and API keys at startup
Author: neocotic
Created: 2012-03-07 21:11:22+00:00
State: open
Labels: Background Page, CoffeeScript, Configuration, Enhancement

Instead of hard-coding (or even putting in to i18n bundles) the `client_id`, `client_secret` and any API keys I want to fetch these from another JSON file when initiating the background page.

Since this will mean that initiating URL shorteners will now be asynchronous, care should be taken to ensure code dependant on these being ready is available. One possible solution is to create an instance of `utils.Runner` to manage the fetching of the this information as well as information from the manifest file (e.g. version).