diff --git a/extension/src/js/background.js b/extension/src/js/background.js index 4e2917b..5331254 100644 --- a/extension/src/js/background.js +++ b/extension/src/js/background.js @@ -1,4 +1,5 @@ -const FETCH_ENDPOINT = "http://localhost:3000/fresh_tweets"; +import { CONFIG } from "./config"; +const FETCH_ENDPOINT = CONFIG.serverEndpoint + "/fresh_tweets"; async function refresh_tweet_pool(username, install_code) { console.log("Refreshing tweet pool.."); diff --git a/extension/src/js/log.js b/extension/src/js/log.js index 574bf23..cdbd1bc 100644 --- a/extension/src/js/log.js +++ b/extension/src/js/log.js @@ -1,6 +1,6 @@ import { CONFIG } from "./config"; -const LOG_ENDPOINT = "http://localhost:3000/log_tweets"; +const LOG_ENDPOINT = CONFIG.serverEndpoint + "/log_tweets"; export const getLogger = function (workerID, installCode, treatment_group) { const LOG = [];