8000
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 dfa863a commit 44ef79aCopy full SHA for 44ef79a
packages/feedback/src/util/isScreenshotSupported.ts
@@ -17,6 +17,15 @@ export function isScreenshotSupported(): boolean {
17
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(NAVIGATOR.userAgent)) {
18
return false;
19
}
20
+ /**
21
+ * User agent on iPads show as Macintosh, so we need extra checks
22
+ *
23
+ * https://forums.developer.apple.com/forums/thread/119186
24
+ * https://stackoverflow.com/questions/60482650/how-to-detect-ipad-useragent-on-safari-browser
25
+ */
26
+ if (/Macintosh/i.test(NAVIGATOR.userAgent) && NAVIGATOR.maxTouchPoints && NAVIGATOR.maxTouchPoints > 1) {
27
+ return false;
28
+ }
29
if (!isSecureContext) {
30
31
0 commit comments