Skip to content

Commit f99e609

Browse files
committed
update modernizr config
1 parent d6d46af commit f99e609

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
const header = document.getElementById('outdated-browser');
2-
3-
console.log('Checking for outdated browser message', Modernizr);
4-
52
const outdatedFeatures = Object.keys(Modernizr).filter(feature => !Modernizr[feature]);
63

7-
if (outdatedFeatures.length > 0 && header) {
4+
if (outdatedFeatures.length > 0 && !embeddedMobile && header) {
85
header.style.display = 'block';
9-
console.log('Outdated browser message displayed:', outdatedFeatures);
106
}

packages/react-scripts/modernizr-config.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"minify": true,
3-
"options": [
4-
"addTest"
5-
],
63
"feature-detects": [
74
"test/customevent",
85
"test/dom/intersection-observer",

0 commit comments

Comments
 (0)