Skip to content

Commit

Permalink
FIX: key name
Browse files Browse the repository at this point in the history
  • Loading branch information
LewisVille-flow committed Jul 25, 2023
1 parent b5d7e07 commit 222ae1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/extension/contentScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) {

sourceInfo = {
title: document.querySelector("div.head-wrapper h1").innerText,
context: Array.from(document.querySelectorAll("div")).filter((div) =>
content: Array.from(document.querySelectorAll("div")).filter((div) =>
div.classList.contains("atom-one")
)[0].innerText,
clue: clue,
Expand All @@ -56,7 +56,7 @@ chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) {

sourceInfo = {
title: iframeDocument.querySelector("div.se-module").innerText,
context: iframeDocument.querySelector("div.se-main-container")
content: iframeDocument.querySelector("div.se-main-container")
.innerText,
clue: clue,
};
Expand All @@ -69,7 +69,7 @@ chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) {

sourceInfo = {
title: document.querySelector('meta[name="title"]').content,
context: document.querySelector("div.contents_style").innerText,
content: document.querySelector("div.contents_style").innerText,
clue: document
.querySelector("div.another_category")
.querySelector("h4")
Expand All @@ -81,7 +81,7 @@ chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) {

sourceInfo = {
title: document.title,
context: document.body.innerText,
content: document.body.innerText,
};
}

Expand Down

0 comments on commit 222ae1f

Please sign in to comment.