UNPKG

qoe-pps

Version:

this is a qoe project of pps

31 lines (26 loc) 489 B
export const global = getGlobal() function getGlobal () { if (typeof window === 'undefined') { return { sessionStorage: { removeItem: (key) => { }, setItem: (key, value) => { }, getItem: (key) => { } }, navigator: { connection: { effectiveType: '' }, mozConnection: { effectiveType: '' }, appVersion: '' } } } else { return window } }