Skip to content

Commit b1d3a98

Browse files
authored
Merge pull request #80 from github/Apply-polyfills-only-when-unsupported
Apply polyfills only when unsupported
2 parents e540a78 + a60232b commit b1d3a98

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)