Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add null check for sessionManager #1164

Merged
merged 2 commits into from
Jan 27, 2020
Merged

Conversation

xiao-lix
Copy link
Contributor

Closes #1149

@xiao-lix xiao-lix requested a review from a team as a code owner January 22, 2020 00:18
@@ -751,7 +751,7 @@ export class DateTimeUtils {
/**
* Get the number of milliseconds since 1970/01/01 in local timezone
*/
public static Now = CoreUtils.isUndefined(_window) ? () => new Date().getTime() :
public static Now = CoreUtils.isNullOrUndefined(_window) ? () => new Date().getTime() :
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getWindow() function returns null when window is not defined:

export function getWindow(): Window | null {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Auto AJAX Dependency tracking not working if XHR request made on Web Worker
2 participants