Open skeie opened 7 years ago
Sorry for the delay on this, did not see the email. What is happening is the transpiled code is assuming a window object will be provided through constructor and does not happen so it is undefined. Line 75 should get the global but it I admit it is confusing code. I will add in a fix that changes the variable names and does a check for global window vs local window object. It's bad practice to name locally scoped variables similar to browser globals and I missed it.
If you have not solved this, you can simply add window to the constructor call to force the global window object down. I will add this to the documentation also.
const client = new FullStoryClient({
host: 'www.fullstory.com',
orgKey: 'fake',
iframe: true
}, window);
Thanks for the feedback 👍. This may be a dumb question, but do you need to pass window to FullStoryClient
? Can't you use the global window value directly?
you can but the hoisting of the same named variable is causing the problem.
Hi,
First off, thanks for making this 👏 . Unforntelay I have some problems making this work. Would love to get some help.
I am trying to run this
But window is not defined.
Do you know why?
I am using react 15.4.1