Expand my Community achievements bar.

Satellite track is getting undefined

Avatar

Level 3

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

 

3 Replies

Avatar

Level 8

@Ashok_Adiyolil 

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.

Avatar

Level 3
Thanks for the reply @Brian_Johnson_ , Let me try as you suggested, will post the results once its done.

Avatar

Level 10
Moving this to the Launch community.