Fix issues.
This commit is contained in:
@@ -361,11 +361,11 @@ export const appHost = {
|
||||
},
|
||||
deviceName: function () {
|
||||
return window.NativeShell && window.NativeShell.AppHost.deviceName
|
||||
? window.NativeShell.AppHost.deviceName() : getDeviceName();
|
||||
? window.NativeShell.AppHost.deviceName() : getDeviceName();
|
||||
},
|
||||
deviceId: function () {
|
||||
return window.NativeShell && window.NativeShell.AppHost.deviceId
|
||||
? window.NativeShell.AppHost.deviceId() : getDeviceId();
|
||||
? window.NativeShell.AppHost.deviceId() : getDeviceId();
|
||||
},
|
||||
appName: function () {
|
||||
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.
|
||||
*/
|
||||
async check () {
|
||||
if (appHost.supports("htmlaudioautoplay")) {
|
||||
if (appHost.supports('htmlaudioautoplay')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user