It would be great if this library did not require window to exist. Otherwise this can't be used with a next.js app or be imported during SSG.
What would it take to check typeof window !== 'undefined' or something before referencing the window object? Or at least not reference window when the library is imported, and instead wait until some raygun function is invoked (lazy)?
Or is there another solution?
Thanks
Related: #301
It would be great if this library did not require
windowto exist. Otherwise this can't be used with a next.js app or be imported during SSG.What would it take to check
typeof window !== 'undefined'or something before referencing thewindowobject? Or at least not referencewindowwhen the library is imported, and instead wait until some raygun function is invoked (lazy)?Or is there another solution?
Thanks
Related: #301