export function getSelfScope () { // see https://stackoverflow.com/a/11237259/589493 Iif (typeof window === 'undefined') { /* eslint-disable-next-line no-undef */ return self; } else { return window; } }