Skip to content

Commit 26efac5

Browse files
committed
add opera mini check
1 parent 8614ea6 commit 26efac5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/browser/src/lib/browser-polyfill.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ export function shouldPolyfill(): boolean {
44
Edge: 13,
55
}
66

7+
const isOperaMiniExtremeMode = (window as any).operamini // compression proxy - allows for page() calls.
8+
79
// Unfortunately IE doesn't follow the same pattern as other browsers, so we
810
// need to check `isIE11` differently.
911
// @ts-expect-error
@@ -14,10 +16,8 @@ export function shouldPolyfill(): boolean {
1416

1517
return (
1618
isIE11 ||
19+
isOperaMiniExtremeMode ||
1720
(browserVersionCompatList[browser] !== undefined &&
1821
browserVersionCompatList[browser] >= parseInt(version))
1922
)
2023
}
21-
22-
// appName = Netscape IE / Edge
23-
// edge 13 Edge/13... same as FF

0 commit comments

Comments
 (0)