hof 20.2.1 → 20.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -53,7 +53,11 @@ function setup(summary) {
53
53
  }
54
54
 
55
55
  function validation() {
56
- var summaries = helpers.getElementsByClass(document.getElementById('content'), 'div', 'validation-summary');
56
+ var summaries = [];
57
+
58
+ if (document.getElementById('content')) {
59
+ summaries = helpers.getElementsByClass(document.getElementById('content'), 'div', 'validation-summary');
60
+ }
57
61
 
58
62
  if (summaries.length) {
59
63
  summary = summaries[0];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "20.2.1",
4
+ "version": "20.2.2",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",