Skip to content

Commit 993d679

Browse files
authored
Fixed post-loaded error detection (#1519)
1 parent 35085ff commit 993d679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

special-pages/pages/duckplayer/app/features/error-detection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export class ErrorDetection {
136136
if (node?.nodeType === Node.ELEMENT_NODE) {
137137
const element = /** @type {HTMLElement} */ (node);
138138
// Check if element has the error class or contains any children with that class
139-
return element.classList.contains('ytp-error') || !!element.querySelector('ytp-error');
139+
return element.classList.contains('ytp-error') || !!element.querySelector('.ytp-error');
140140
}
141141

142142
return false;

0 commit comments

Comments
 (0)