How to tell if navigator.permissions.query with a certain permission is supported

后端 未结 0 1238
臣服心动
臣服心动 2021-02-15 04:19

I have the following code:

if (navigator.permissions && navigator.permissions.query) {
  navigator.permissions.query({
    name: \'clipboard-write\'
  }).         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题