mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix issues.
This commit is contained in:
parent
e92ced48c7
commit
911a5fa847
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue