Permalink
Browse files

Updated API URL to use HTTPS.

  • Loading branch information...
Aaron Hastings
Aaron Hastings committed Dec 27, 2014
1 parent 8330868 commit 99e50cfe8dc899dd33666b4eb7554fe70dd7c82c
Showing with 2 additions and 3 deletions.
  1. +1 −2 js/gettimes.js
  2. +1 −1 uLuas.qml
@@ -1,4 +1,3 @@

WorkerScript.onMessage = function(sentMessage) {
var stopName = sentMessage.stop;
var xmlHttp = new XMLHttpRequest();
@@ -71,7 +70,7 @@ WorkerScript.onMessage = function(sentMessage) {

// Query a hosted Luas API script. Returns JSON object with service message and times for the given stop.
// API can be found here: https://github.com/ncremins/luas-api
xmlHttp.open("GET", "http://uluas-times.thecosmicfrog.org/luas-api-v2/luas-api.php?action=times&station=BLA/luas-api-v2/luas-api.php?action=times&station=" + stopCodes[stopName], true);
xmlHttp.open("GET", "https://api.thecosmicfrog.org/cgi-bin/luas-api.php?action=times&station=BLA/luas-api-v2/luas-api.php?action=times&station=" + stopCodes[stopName], true);
xmlHttp.send(null);

xmlHttp.onreadystatechange = function() {
@@ -7,7 +7,7 @@ MainView {
id: mainView

applicationName: "org.thecosmicfrog.uluas"
property string version: "0.21"
property string version: "0.22"

useDeprecatedToolbar: false

0 comments on commit 99e50cf

Please sign in to comment.