Skip to content

Commit 0887610

Browse files
committed
Add logging
1 parent 95b4384 commit 0887610

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dotcom-rendering/src/components/SelfHostedVideo.importable.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)