File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -407,7 +407,7 @@ export const SelfHostedVideo = ({
407407 ) . matches ;
408408
409409 /**
410- * The user can set this on their Accessibilzity Settings page.
410+ * The user can set this on their Accessibility Settings page.
411411 * Explicitly `false` when the user has said they don't want autoplay video.
412412 */
413413 const autoplayPreference = storage . local . get (
@@ -428,12 +428,12 @@ export const SelfHostedVideo = ({
428428 // check the rendering taget and set autoplay setting dependent on that
429429
430430 if ( renderingTarget === 'Apps' ) {
431+ console . log ( 'in apps' ) ;
431432 const videoClient = getVideoClient ( ) ;
432- void videoClient
433- . isAutoplayEnabled ( )
434- . then ( ( isAutoplayEnabled : boolean ) => {
435- setIsAutoplayAllowed ( isAutoplayEnabled ) ;
436- } ) ;
433+ void videoClient . isAutoplayEnabled ( ) . then ( ( success : boolean ) => {
434+ console . log ( 'isAutoplayEnabled?' , { success } ) ;
435+ setIsAutoplayAllowed ( success ) ;
436+ } ) ;
437437 } else {
438438 setIsAutoplayAllowed ( doesUserPermitAutoplay ( ) ) ;
439439 }
You can’t perform that action at this time.
0 commit comments