[client] Fix assert in non testing environment
Regression from be8e2c95
process
will only be defined when called from tests. In a browser there will just be an error.
window
will not be defined when running tests.
Regression from be8e2c95
process
will only be defined when called from tests. In a browser there will just be an error.
window
will not be defined when running tests.