Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract SkyAware Anywhere from fa_web #188

Merged
merged 11 commits into from
Jul 13, 2022
Prev Previous commit
Next Next commit
Call receiver data endpoint in fa_web
  • Loading branch information
Paul Kuruvila committed Jun 23, 2022
commit 4643d6870f3614c280886e5e9a6ebb4dc3fbd1ee
5 changes: 3 additions & 2 deletions public_html/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,11 @@ function initialize() {

// Get receiver metadata, reconfigure using it, then continue
// with initialization
$.ajax({ url: 'data/receiver.json',
// TODO: Change url to prod before merging
$.ajax({ type: 'GET',
url: 'https://pkuruvila.flightaware.com/ajax/skyaware/receiver_info.rvt',
timeout: 5000,
cache: false,
data: window.location.search.substring(1),
dataType: 'json' })

.done(function(data) {
Expand Down