Browse Source

[add][摄像有权限]

zhangwei 2 năm trước cách đây
mục cha
commit
9d5fe20009
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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.id = post_Id
         _iframe_url = chrome.runtime.getURL('/iframe/tool-box.html') + `?page_type=${'card'}&postId=${post_Id}&tweetId=${tweet_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
         // debugger mode
         if (window.location.href.includes('denet_debugger')) {
         if (window.location.href.includes('denet_debugger')) {
             _iframe_url = _iframe_url + '&denet_debugger=1'
             _iframe_url = _iframe_url + '&denet_debugger=1'