Satellite track is getting undefined

Avatar

Avatar

Knowledgeseeker98

Avatar

Knowledgeseeker98

Knowledgeseeker98

29-01-2021

Hi experts,

We have added launch code in the header file and we have  satellite track which is used in JS file.But while executing it i'm getting issue as undefined.

But in console ,i can see script is getting loaded also i can able to access the satellite property.

The only issue is script is getting loaded after the js file.

 

Any solution for this.

 

MicrosoftTeams-image (17).png

 

 

Thanks

 

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar

evolytics_brian

Avatar

evolytics_brian

evolytics_brian

29-01-2021

@Knowledgeseeker98 

If I'm reading your question right, you're saying that you have a custom JS file that attempts to reference the _satellite.track() method, but that file is loading before Launch is loaded on the page. If that's the case, you're going to have to load the JS file (or at least delay the _satellite.track() call) after the Launch script loads.