Skip to content

Commit e1db8f8

Browse files
committed
Enabled Windows platform
1 parent 993d679 commit e1db8f8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export class ErrorDetection {
3131
iframeDidLoad(iframe) {
3232
this.iframe = iframe;
3333

34-
if (!this.options || !this.options.signInRequiredSelector) {
35-
console.log('Missing Custom Error options');
34+
if (this.options?.state !== 'enabled') {
35+
console.log('Error detection disabled');
3636
return null;
3737
}
3838

special-pages/pages/duckplayer/app/providers/YouTubeErrorProvider.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function YouTubeErrorProvider({ initial = null, children }) {
5252
if (YOUTUBE_ERROR_IDS.includes(eventError) || eventError === null) {
5353
if (eventError && eventError !== error) {
5454
setFocusMode('paused');
55-
if (platformName === 'macos' || platformName === 'ios') {
55+
if (platformName === 'macos' || platformName === 'ios' || platformName === 'windows') {
5656
messaging.reportYouTubeError({ error: eventError });
5757
}
5858
} else {

0 commit comments

Comments
 (0)