mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Make playbackPermissionManager respect appHost capabilities.
This commit is contained in:
parent
6f5517015e
commit
0671d7086b
@ -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…
Reference in New Issue
Block a user