Skip to content

Commit

Permalink
fix: 修复题库页评分组件不加载
Browse files Browse the repository at this point in the history
  • Loading branch information
XYShaoKang committed Aug 25, 2023
1 parent 59365cc commit 20f4d24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ export const getGitHubCommit = async (

// 通过页面包含的一些独特特征判断是否已经跳转到某个页面
export const problemsetPageIsLoad = async (): Promise<boolean> => {
const el = await findElementByXPath(`//li[text()="题库"]`)
const el = await findElementByXPath(`//li[//text()="题库"]`)
const hr = el.parentElement?.nextElementSibling
if (!hr) return false
return getComputedStyle(hr)['visibility'] === 'visible'
Expand Down

0 comments on commit 20f4d24

Please sign in to comment.