1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix issues.

This commit is contained in:
Ian Walton 2021-04-10 22:01:37 -04:00
parent e92ced48c7
commit 911a5fa847
2 changed files with 3 additions and 3 deletions

View file

@ -361,11 +361,11 @@ export const appHost = {
}, },
deviceName: function () { deviceName: function () {
return window.NativeShell && window.NativeShell.AppHost.deviceName return window.NativeShell && window.NativeShell.AppHost.deviceName
? window.NativeShell.AppHost.deviceName() : getDeviceName(); ? window.NativeShell.AppHost.deviceName() : getDeviceName();
}, },
deviceId: function () { deviceId: function () {
return window.NativeShell && window.NativeShell.AppHost.deviceId return window.NativeShell && window.NativeShell.AppHost.deviceId
? window.NativeShell.AppHost.deviceId() : getDeviceId(); ? window.NativeShell.AppHost.deviceId() : getDeviceId();
}, },
appName: function () { appName: function () {
return window.NativeShell ? window.NativeShell.AppHost.appName() : appName; return window.NativeShell ? window.NativeShell.AppHost.appName() : appName;

View file

@ -35,7 +35,7 @@ class PlaybackPermissionManager {
* @returns {Promise} Promise that resolves succesfully if playback permission is allowed. * @returns {Promise} Promise that resolves succesfully if playback permission is allowed.
*/ */
async check () { async check () {
if (appHost.supports("htmlaudioautoplay")) { if (appHost.supports('htmlaudioautoplay')) {
return true; return true;
} }