From 98ce6bf4d55a9944d8dc576e2e36c34696f13c1f Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Tue, 2 Apr 2024 13:55:22 +0100 Subject: [PATCH] Fixed onboarding checklist video logo autoplay (#19967) closes https://linear.app/tryghost/issue/IPC-117/fix-ghost-orb-logo-not-being-animated-in-chrome-or-arc - Chrome wasn't respecting the `muted` attribute when the dashboard is loaded without any interaction resulting in the video not auto playing - fixed by adding a `{{autoplay}}` modifier that explicitly sets the `muted` property on the video before calling `.play()` which appears to bypass the interaction-required block --- .../admin/app/components/dashboard/onboarding-checklist.hbs | 6 +++--- ghost/admin/app/modifiers/autoplay.js | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 ghost/admin/app/modifiers/autoplay.js diff --git a/ghost/admin/app/components/dashboard/onboarding-checklist.hbs b/ghost/admin/app/components/dashboard/onboarding-checklist.hbs index dc582e1059..a28a52d137 100644 --- a/ghost/admin/app/components/dashboard/onboarding-checklist.hbs +++ b/ghost/admin/app/components/dashboard/onboarding-checklist.hbs @@ -1,15 +1,15 @@
{{#if (feature "nightShift")}} -