/*
* ADR Reporting
* Copyright (C) 2017 Divay Prakash
* GNU Affero General Public License 3.0 (https://github.com/divayprakash/adr/blob/master/LICENSE)
*/
var dataUriTest;
Modernizr.on('datauri', function(result) {
  dataUriTest = result.valueOf() && result.over32kb;
  var inputTest = Modernizr.input.max && Modernizr.input.min && Modernizr.input.placeholder && Modernizr.input.step;
  var inputTypesTest = Modernizr.inputtypes.date && Modernizr.inputtypes.email && Modernizr.inputtypes.number && Modernizr.inputtypes.range && Modernizr.inputtypes.tel;
  var mediaQueriesTest = Modernizr.mediaqueries;
  var placeholderTest = Modernizr.placeholder;
  var totalTest = dataUriTest && inputTest && inputTypesTest && mediaQueriesTest && placeholderTest;
  if (!totalTest) {
    document.getElementById('main-div').style.display = 'none';
    document.getElementById('warning').style.display = 'block';
  }
});

@@ -152,123 +152,8 @@
 %0A*/%0A
-var dataUriTest;%0AModernizr.on('datauri', function(result) %7B%0A  dataUriTest = result.valueOf() && result.over32kb;%0A  
 var 
@@ -263,18 +263,16 @@
 t.step;%0A
-  
 var inpu
@@ -430,18 +430,16 @@
 es.tel;%0A
-  
 var medi
@@ -477,18 +477,16 @@
 ueries;%0A
-  
 var plac
@@ -522,18 +522,16 @@
 holder;%0A
-  
 var tota
@@ -541,23 +541,8 @@
 st =
- dataUriTest &&
  inp
@@ -606,18 +606,16 @@
 erTest;%0A
-  
 if (!tot
@@ -626,18 +626,16 @@
 st) %7B%0A  
- 
- 
 document
@@ -686,18 +686,16 @@
 'none';%0A
-  
   docume
@@ -752,12 +752,6 @@
 k';%0A
-  %7D%0A%7D);
+%7D
 %0A

Remove highly error prone datauri test