Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 4a1ac29

Browse files
author
george
committed
update polyfill check to include NodeList.forEach
1 parent 725079d commit 4a1ac29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import "core-js/features/promise"
22

33
const polyfills = []
4-
const modernBrowser = "fetch" in window && "assign" in Object
4+
const modernBrowser = "fetch" in window && "assign" in Object && "forEach" in NodeList.prototype
55

66
if (!modernBrowser) {
77
polyfills.push(import(/* webpackChunkName: "polyfill" */ "core-js/stable"))

0 commit comments

Comments
 (0)