Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / misc / collapse.js
index 2f157bad31e70c8f287d225da44164f6a4a9d4e2..3c09ab18b77e6e29d7a7621180f8fbc3ffaabec8 100644 (file)
@@ -10,7 +10,7 @@
     this.$node = $(node);
     this.$node.data('details', this);
 
-    var anchor = location.hash && location.hash !== '#' ? ', ' + location.hash : '';
+    var anchor = window.location.hash && window.location.hash !== '#' ? ', ' + window.location.hash : '';
     if (this.$node.find('.error' + anchor).length) {
       this.$node.attr('open', true);
     }