The WindowService still just attempts to access the global window. We should instead use the defaultView, available on the native document, which returns the native window in a browser environment. Since an InjectionToken for document is already provided by Angular, we can remove this dependency on a global variable.
Describe the bug
The
WindowService
still just attempts to access the globalwindow
. We should instead use thedefaultView
, available on the nativedocument
, which returns the nativewindow
in a browser environment. Since an InjectionToken fordocument
is already provided by Angular, we can remove this dependency on a global variable.To Reproduce
/
Expected behavior
Don't use global variables.
Screenshots
/
OS (please complete the following information):
/
Additional context
Add any other context about the problem here.