query method

JSPromise<PermissionStatus> query(
  1. JSObject permissionDesc
)

The query() method of the Permissions interface returns the state of a user permission on the global scope.

Implementation

external JSPromise<PermissionStatus> query(JSObject permissionDesc);