diff --git a/src/content-scripts/github.ts b/src/content-scripts/github.ts index c154de7c..1519efe4 100644 --- a/src/content-scripts/github.ts +++ b/src/content-scripts/github.ts @@ -60,7 +60,7 @@ void processGithubPage(); chrome.runtime.onMessage.addListener((msg, sender, sendResponse) => { switch (msg.type) { case "get_highlight": { - const title = (document.querySelector(".js-issue-title.markdown-title") as HTMLHeadingElement)?.innerText; + const title = (document.querySelector(".js-issue-title.markdown-title") as HTMLHeadingElement).innerText; sendResponse(title); break; diff --git a/src/pages/help.tsx b/src/pages/help.tsx index ef20c60e..bf51907f 100644 --- a/src/pages/help.tsx +++ b/src/pages/help.tsx @@ -7,7 +7,7 @@ import { } from "react-icons/hi2"; import { goBack } from "react-chrome-extension-router"; import { VscIssues } from "react-icons/vsc"; -const { version } = config; +import { version } from "../../package.json"; const Help = () => (