fix: Cannot read properties of null (reading 'style') bug

This commit is contained in:
itcatplayit
2023-05-21 10:10:46 +08:00
parent e329eb4e80
commit c62f04806d

View File

@@ -234,7 +234,7 @@ window.addEventListener("message", (event) => {
container.append(div) container.append(div)
} }
} }
text.style.display = trans ? 'block' : 'none' text && (text.style.display = trans ? 'block' : 'none')
} }
}, false); }, false);