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 0157d17 commit 93e4bcbCopy full SHA for 93e4bcb
src/utils/ctm-workaround.ts
@@ -6,7 +6,10 @@ export function getScreenCTM(
6
workaroundRect: DOMRectReadOnly
7
) {
8
const { userAgent } = navigator;
9
- const workaroundNeeded = userAgent.indexOf('Firefox') >= 0 || userAgent.indexOf('Epiphany') >= 0;
+ const workaroundNeeded =
10
+ userAgent.indexOf('Firefox') >= 0 ||
11
+ userAgent.indexOf('Epiphany') >= 0 ||
12
+ userAgent.indexOf('Safari') >= 0;
13
14
if (workaroundNeeded) {
15
// Firefox's getScreenCTM() is broken: https://bugzilla.mozilla.org/show_bug.cgi?id=1610093
0 commit comments