Skip to content
This repository
Browse code

Support {"uri:...} and {"url":...} options because I always try those…

… first
  • Loading branch information...
commit 4ba0f882abca9af6f2c67f630c31cc9ea6dd75d4 1 parent 9764350
Jason Smith jhs authored

Showing 1 changed file with 5 additions and 0 deletions. Show diff stats Hide diff stats

  1. +5 0 lib/feed.js
5 lib/feed.js
@@ -57,6 +57,11 @@ function Feed (opts) {
57 57 opts = opts || {};
58 58 if(typeof opts === 'string')
59 59 opts = {'db': opts};
  60 +
  61 + opts.db = opts.db || opts.url || opts.uri
  62 + delete opts.url
  63 + delete opts.uri
  64 +
60 65 Object.keys(opts).forEach(function(key) {
61 66 self[key] = opts[key];
62 67 })

0 comments on commit 4ba0f88

Please sign in to comment.
Something went wrong with that request. Please try again.