1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 1× 1× 1× 1× | /*! * Sheetrock * Quickly connect to, query, and lazy-load data from Google Sheets. * https://chriszarate.github.io/sheetrock/ * License: MIT */ const root = (typeof window === 'undefined') ? {} : window; // Provide details about environment. const env = { document: root.document || {}, dom: !!(root.document && root.document.createElement), jquery: !!(root.jQuery && root.jQuery.fn && root.jQuery.fn.jquery), }; export default env; |