Skip to content

Commit

Permalink
fix: querySelectorでエラーが出る問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
hideki0403 committed Jul 18, 2022
1 parent c248592 commit 80f115d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ const betterJapanese = {

obj.forEach(key => {
betterJapanese.tmpIgnoreList[key] = state
document.querySelectorAll(`[name$=word\:${CSS.escape(key.replace(/"/g, '"'))}]`).forEach(e => e.checked = state)
document.querySelectorAll(`[name$=${CSS.escape('word:' + key.replace(/"/g, '"'))}]`).forEach(e => e.checked = state)
})
}

Expand Down Expand Up @@ -851,7 +851,7 @@ const betterJapanese = {
let elements = document.querySelectorAll(`[name^=${CSS.escape(position)}\\/]`)
let parent = document.getElementsByName(position)[0]

if (!elements) continue
if (!elements || !parent) continue

let checkState = 0
let isContainIndeterminate = false
Expand Down

0 comments on commit 80f115d

Please sign in to comment.