Don't use window in web workers