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 exception handling part breaks NodeJS compatibility because checking for the presence of windows triggers a nodejs error. It's better to check if window is defined by checking it's type like below.
if(typeof(window) !== 'undefined') {
// do stuff with window
}
I haven't checked the rest of the methods for nodejs compatiblity, this just popped up by just including the file in my nodejs project.
The text was updated successfully, but these errors were encountered:
The exception handling part breaks NodeJS compatibility because checking for the presence of windows triggers a nodejs error. It's better to check if window is defined by checking it's type like below.
I haven't checked the rest of the methods for nodejs compatiblity, this just popped up by just including the file in my nodejs project.
The text was updated successfully, but these errors were encountered: