mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Make playbackPermissionManager respect appHost capabilities.
This commit is contained in:
parent
6f5517015e
commit
0671d7086b
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
import { getIgnorePlayPermission } from '../../../scripts/settings/webSettings';
|
||||
import { appHost } from '../../apphost';
|
||||
|
||||
/**
|
||||
* Creates an audio element that plays a silent sound.
|
||||
|
@ -35,7 +35,7 @@ class PlaybackPermissionManager {
|
|||
* @returns {Promise} Promise that resolves succesfully if playback permission is allowed.
|
||||
*/
|
||||
async check () {
|
||||
if (await getIgnorePlayPermission()) {
|
||||
if (appHost.supports("htmlaudioautoplay")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue