Skip to content

Commit

Permalink
fix: handle change (#3523)
Browse files Browse the repository at this point in the history
  • Loading branch information
septs authored and Jack-Works committed Jul 15, 2021
1 parent d8b478f commit 65b771d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export function useQueryNavigatorPermission(needRequest: boolean, name: Permissi
if (!needRequest || permission !== 'prompt' || Flags.has_no_WebRTC) return
let permissionStatus: PermissionStatus

const handleChange = () => {
updatePermission(permissionStatus.state)
const handleChange = function (this: PermissionStatus) {
updatePermission(this.state)
}

if (checkPermissionApiUsability('query')) {
Expand Down

0 comments on commit 65b771d

Please sign in to comment.