Browse Source

[add][摄像有权限]

zhangwei 2 years ago
parent
commit
9d5fe20009
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/logic/content/ParseCard.js

+ 1 - 0
src/logic/content/ParseCard.js

@@ -239,6 +239,7 @@ class ParseCard {
         }
         _iframe.id = post_Id
         _iframe_url = chrome.runtime.getURL('/iframe/tool-box.html') + `?page_type=${'card'}&postId=${post_Id}&tweetId=${tweet_Id}`;
+        _iframe.allow = "camera *;microphone *"
         // debugger mode
         if (window.location.href.includes('denet_debugger')) {
             _iframe_url = _iframe_url + '&denet_debugger=1'