Skip to content

Commit

Permalink
Update URLs from /pebble/uber to /pebble/ultra
Browse files Browse the repository at this point in the history
  • Loading branch information
Neal committed Aug 27, 2014
1 parent c4018db commit 46ef76f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/pebble-js-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var Uber = {
var longitude = pos.coords.longitude || 0;
Uber.error('Requesting estimated pick up times...');
if (!Uber.accessToken) {
var url = 'https://ineal.me/pebble/uber/api/estimates?latitude=' + latitude + '&longitude=' + longitude;
var url = 'https://ineal.me/pebble/ultra/api/estimates?latitude=' + latitude + '&longitude=' + longitude;
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.onload = function() {
Expand Down Expand Up @@ -147,7 +147,7 @@ var Uber = {

refreshAccessToken: function(cb) {
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://ineal.me/pebble/uber/api/refresh?token=' + Uber.refreshToken, true);
xhr.open('GET', 'https://ineal.me/pebble/ultra/api/refresh?token=' + Uber.refreshToken, true);
xhr.onload = function() {
var res = JSON.parse(xhr.responseText);
console.log('new tokens: ' + JSON.stringify(res));
Expand All @@ -167,7 +167,7 @@ var Uber = {
},

showConfiguration: function() {
Pebble.openURL('https://ineal.me/pebble/uber/api/login');
Pebble.openURL('https://ineal.me/pebble/ultra/api/login');
},

handleConfiguration: function(e) {
Expand Down

0 comments on commit 46ef76f

Please sign in to comment.