Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
16 lines
758 B
Plaintext
16 lines
758 B
Plaintext
/**
|
|
* Mobile browsers do not support `mediaDevices.getDisplayMedia` even though they have the api implemented
|
|
* Instead they return things like `NotAllowedError` when called.
|
|
*
|
|
* It's simpler for us to browser sniff first, and avoid loading the integration if we can.
|
|
*
|
|
* https://stackoverflow.com/a/58879212
|
|
* https://stackoverflow.com/a/3540295
|
|
*
|
|
* `mediaDevices.getDisplayMedia` is also only supported in secure contexts, and return a `mediaDevices is not supported` error, so we should also avoid loading the integration if we can.
|
|
*
|
|
* https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia
|
|
*/
|
|
export declare function isScreenshotSupported(): boolean;
|
|
//# sourceMappingURL=isScreenshotSupported.d.ts.map
|