fix(theme-v2): ensure theme audio autoplays on load and handles unlock gesture
This commit is contained in:
1 parent
ad3fe7c586
commit
d38250a5e4
4 files changed
+36
-8
No files matched your search
@@ -434,6 +434,7 @@ export const loadTheme = async (theme: Theme, themeContainer: HTMLElement, volum
|
||||
if (theme.definition) {
|
||||
setGlobalVolume(volume);
|
||||
disableMediaControls();
|
||||
void invoke('unlock_media_autoplay').catch(() => {});
|
||||
return;
|
||||
}
|
||||
if (theme.scriptUrl.length > 0) {
|
||||
|
||||
Reference in new issue
Block a user