Skip to content

Commit

Permalink
Prevent errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek-nexus committed Mar 14, 2024
1 parent d4f36af commit 8706f51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function transcriber(mutationsList, observer) {
// Callback function to execute when mutations are observed
setTimeout(() => {
mutationsList.forEach(mutation => {
if (document.querySelector('.a4cQT').firstChild?.firstChild?.childNodes.length > 0) {
if (document.querySelector('.a4cQT')?.firstChild?.firstChild?.childNodes.length > 0) {
const people = document.querySelector('.a4cQT').firstChild.firstChild.childNodes

const person = people[people.length - 1]
Expand Down

0 comments on commit 8706f51

Please sign in to comment.