You've already forked bilibili-subtitle
fix: Cannot read properties of null (reading 'style') bug
This commit is contained in:
@@ -234,7 +234,7 @@ window.addEventListener("message", (event) => {
|
||||
container.append(div)
|
||||
}
|
||||
}
|
||||
text.style.display = trans ? 'block' : 'none'
|
||||
text && (text.style.display = trans ? 'block' : 'none')
|
||||
}
|
||||
}, false);
|
||||
|
||||
|
Reference in New Issue
Block a user