Skip to content

Commit

Permalink
fix: fix simple share typo
Browse files Browse the repository at this point in the history
  • Loading branch information
festoney8 committed Dec 31, 2023
1 parent bc95cb6 commit af6ca59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ function simpleShare() {
shareBtn.addEventListener('click', () => {
let title = document.querySelector('#viewbox_report > h1')?.textContent as string
if (
!'(({【[[《「<{〔〖<〈『'.includes(title[0]) ||
'))}】]]》」>}〕〗>〉』'.includes(title.slice(-1))
!'(({【[[《「<{〔〖<〈『'.includes(title[0]) &&
!'))}】]]》」>}〕〗>〉』'.includes(title.slice(-1))
) {
title = `【${title}】`
}
Expand Down

0 comments on commit af6ca59

Please sign in to comment.