Isolated the access to the `window` context.
v1.3.0