Skip to content

Commit

Permalink
fixing firefox issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aatmanvaidya committed Oct 6, 2023
1 parent 0ce3509 commit 1e605d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion browser-extension/api-server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
{
Expand Down
2 changes: 1 addition & 1 deletion browser-extension/plugin/manifest.firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"storage",
"webRequest",
"contextMenus",
"http://localhost:3000/*"
"http://localhost/*"
],
"background": {
"scripts": ["background.js"]
Expand Down
3 changes: 3 additions & 0 deletions browser-extension/plugin/src/content-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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: []
Expand Down

0 comments on commit 1e605d6

Please sign in to comment.