add guards to a couple more window
accesses in socket.ts
#17206
This job was skipped
Loading
window
accesses in socket.ts
#17206