You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: