We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a5f2f8 commit bb4aaaaCopy full SHA for bb4aaaa
platform-includes/user-feedback/setup/javascript.electron.mdx
@@ -12,3 +12,16 @@ Sentry.init({
12
],
13
});
14
```
15
+
16
+### Screenshot Permissions
17
18
+Screenshot capture uses `navigator.mediaDevices.getDisplayMedia()` to capture
19
+the window which is denied by default in Electron. To enable this feature, you
20
+need to set a `setDisplayMediaRequestHandler` callback in the Electron main
21
+process and allow access to the requesting frame.
22
23
+```javascript
24
+session.defaultSession.setDisplayMediaRequestHandler((request, callback) => {
25
+ callback({ video: request.frame });
26
+});
27
+```
0 commit comments