Skip to content

Commit 000f01c

Browse files
author
Ives van Hoorne
committed
Load polyfills for Opera
1 parent ac271c7 commit 000f01c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/common/load-dynamic-polyfills.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@ function detectIE() {
1818
return false;
1919
}
2020

21+
function detectOpera() {
22+
return navigator.userAgent.indexOf('Opera');
23+
}
24+
2125
export default function requirePolyfills() {
22-
if (detectIE()) {
26+
if (detectIE() || detectOpera()) {
2327
return import('babel-polyfill');
2428
}
2529

0 commit comments

Comments
 (0)