mirror of
https://github.com/nolanlawson/pinafore
synced 2024-12-12 18:28:03 +01:00
70da9a92a6
* fix: close/open websocket on freeze/resume events attempt to address #14 * fix unit tests
10 lines
262 B
JavaScript
10 lines
262 B
JavaScript
// browser shims that run in node, so that page-lifecycle won't error
|
|
global.self = global
|
|
global.document = {
|
|
visibilityState: 'visible',
|
|
hasFocus: () => true,
|
|
wasDiscarded: false
|
|
}
|
|
global.addEventListener = () => {}
|
|
global.removeEventListener = () => {}
|