diff --git a/browser-extension/api-server/index.js b/browser-extension/api-server/index.js index 2fc13f79..84ff45cf 100644 --- a/browser-extension/api-server/index.js +++ b/browser-extension/api-server/index.js @@ -229,7 +229,7 @@ app.post("/slur/create", async (req, res) => { const { label, level_of_severity, casual, appropriated, appropriationContext,labelMeaning, categories } = req.body; console.log(userId, label, labelMeaning, appropriated, appropriationContext, categories) const t = await sequelize.transaction() - + try { const newSlur = await slur.create( { diff --git a/browser-extension/plugin/manifest.firefox.json b/browser-extension/plugin/manifest.firefox.json index d0678395..7a4a2a30 100644 --- a/browser-extension/plugin/manifest.firefox.json +++ b/browser-extension/plugin/manifest.firefox.json @@ -9,7 +9,7 @@ "storage", "webRequest", "contextMenus", - "http://localhost:3000/*" + "http://localhost/*" ], "background": { "scripts": ["background.js"] diff --git a/browser-extension/plugin/src/content-script.js b/browser-extension/plugin/src/content-script.js index 7f5f8456..1aa9730d 100644 --- a/browser-extension/plugin/src/content-script.js +++ b/browser-extension/plugin/src/content-script.js @@ -16,6 +16,8 @@ log('Content Script Loaded Test 2'); // test function to log variables in console (async function test() { console.log('Async Test'); + // const data = await axios.get("http://localhost:3000/"); + // console.log("api test data", data); })(); var mainLoadedChecker; @@ -115,6 +117,7 @@ chrome.runtime.onMessage.addListener(async function (request) { const crowdsource_slur = request.crowdsourcedSlur; console.log('crowdsourced slur from bg = ', crowdsource_slur); const user = await getUserData(); + console.log('USER in cotnent', user); const crowdsourceData = { label: crowdsource_slur, categories: []