From 222ae1f8ae64ba9161a620ea023514bdff71188a Mon Sep 17 00:00:00 2001 From: Lewis JooHyeong Lee Date: Wed, 26 Jul 2023 03:14:26 +0900 Subject: [PATCH] FIX: key name --- web/extension/contentScript.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/extension/contentScript.js b/web/extension/contentScript.js index 5526678..17bc634 100644 --- a/web/extension/contentScript.js +++ b/web/extension/contentScript.js @@ -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, @@ -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, }; @@ -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") @@ -81,7 +81,7 @@ chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) { sourceInfo = { title: document.title, - context: document.body.innerText, + content: document.body.innerText, }; }