jfroelich / rss-reader

A simple Chrome extension for viewing RSS feeds
Other
10 stars 0 forks source link

Decouple config from lower layers #812

Closed jfroelich closed 5 years ago

jfroelich commented 5 years ago

Configuration settings for lower layer components like the database and ops and any helpers should be implemented by accepting function parameters (e.g. an optional options object). The only users of config are the highest layers at or near the view, where config is loaded and then passed as parameters in calls to the lower layers.