Skip to content

Commit

Permalink
通知权限的获取h5版本先放着
Browse files Browse the repository at this point in the history
  • Loading branch information
censujiang committed Nov 1, 2023
1 parent da32f58 commit cc9949c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/permission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ export const notificationPermission = {
// #endif
return result
},
request: async() =>{
let result: boolean
// #ifdef H5
result = await origin.notificationPermission.request()
// #endif
return result
}
}

// 剪切板权限相关
Expand Down

0 comments on commit cc9949c

Please sign in to comment.