Skip to content

Commit a60232b

Browse files
authored
Apply polyfills only when unsupported
1 parent e540a78 commit a60232b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ export function isPolyfilled() {
6767

6868
export function apply() {
6969
for (const polyfill of Object.values(polyfills)) {
70-
polyfill.apply()
70+
if (!polyfill.isSupported()) polyfill.apply()
7171
}
7272
}

0 commit comments

Comments
 (0)