Security update to Drupal 8.4.6
[yaffs-website] / node_modules / global / document.js
1 var topLevel = typeof global !== 'undefined' ? global :
2     typeof window !== 'undefined' ? window : {}
3 var minDoc = require('min-document');
4
5 if (typeof document !== 'undefined') {
6     module.exports = document;
7 } else {
8     var doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4'];
9
10     if (!doccy) {
11         doccy = topLevel['__GLOBAL_DOCUMENT_CACHE@4'] = minDoc;
12     }
13
14     module.exports = doccy;
15 }