diff --git a/app.js b/app.js index 8112690..e703ead 100644 --- a/app.js +++ b/app.js @@ -1,6 +1,8 @@ const config = require('./config') global.client_id_b64 = Buffer.from(`${config.reddit_app_id}:`).toString('base64') +global.reddit_access_token = null +global.reddit_refresh_token = null const pug = require('pug') const path = require('path') diff --git a/inc/processSubredditSidebar.js b/inc/processSubredditSidebar.js index e35149c..e833aa5 100644 --- a/inc/processSubredditSidebar.js +++ b/inc/processSubredditSidebar.js @@ -1,4 +1,5 @@ module.exports = function() { + const config = require('../config') this.processSubredditSidebar = (subreddit, redis, fetch, RedditAPI) => { return new Promise(resolve => { (async () => {