Skip to content

Commit

Permalink
config server endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
squidgetx committed Dec 16, 2022
1 parent d9042fc commit 57e96a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion extension/src/js/background.js
Original file line number Diff line number Diff line change
@@ -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..");
Expand Down
2 changes: 1 addition & 1 deletion extension/src/js/log.js
Original file line number Diff line number Diff line change
@@ -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 = [];
Expand Down

0 comments on commit 57e96a7

Please sign in to comment.