UNPKG

@mntm/stats

Version:

A package for integrating analytics tools

8 lines (7 loc) 273 B
import { getDocument, getWindow } from 'ssr-window'; const safeDocument = getDocument(); const safeWindow = getWindow(); if (typeof safeDocument.body.appendChild !== 'function') { safeDocument.body.appendChild = (child) => child; } export { safeDocument, safeWindow };