We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hypertopic settings are got:
If the Hypertopic constructor could accept promises, development would be easier.
promises
The text was updated successfully, but these errors were encountered:
Examples of use:
const DB = new Hypertopic(browser.storage.local.get('services'));
instead of
const DB = browser.storage.local.get('services') .then(x => x.services) .then(x => new Hypertopic(x));
const DB = new Hypertopic(fetchYAML('./config.yml'));
const DB = fetch('./config.yml') .then(x => x.text()) .then(x => yaml.parse(x)) .then(x => x.services) .then(x => new Hypertopic(x));
Sorry, something went wrong.
Or maybe, integration of the services step would be enough:
services
const DB = browser.storage.local.get('services') .then(x => new Hypertopic(x));
const DB = (fetchYAML('./config.yml') .then(x => new Hypertopic(x));
No branches or pull requests
Hypertopic settings are got:
If the Hypertopic constructor could accept
promises
, development would be easier.The text was updated successfully, but these errors were encountered: