in src/get-window.ts [5:13]
export function getWindow() {
if (typeof window === 'object' && window.document) {
return window;
} else if (self && self.document === undefined) {
return self;
}
throw new Error('Undefined context');
}