fullstorydev / fullstory-browser-sdk

Official FullStory SDK for JavaScript, for web browsers
MIT License
55 stars 17 forks source link

Add a helper that checks to see if FullStory is already initiated #115

Closed ralfstory closed 2 years ago

ralfstory commented 2 years ago

This will help prevent reinitialization and reduce the subsequent noisy logs by being able to check the initialization status and calling FS.init conditionally.

Iodine- commented 2 years ago

I can't find anywhere in the docs where it says this specifically, but I have been using window._fs_initialized to do what you described

ralfstory commented 2 years ago

That definitely works!! Though I think it should be exposed through the SDK explicitly - the fact that you've also had a use case for this means it should probably be baked in!

luser commented 2 years ago

Fixed by #130.