Skip to content

Commit

Permalink
added another api search option #234
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed May 4, 2016
1 parent e1ef928 commit 48c686a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions www/js/WizardCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ angular.module('zmApp.controllers').controller('zmApp.WizardCtrl', ['$scope', '$
})
.success(function (data, status, headers) {
console.log("LOOKING FOR " + zm.loginScreenString);
//console.log ("DATA RECEIVED " + JSON.stringify(data));
console.log ("DATA RECEIVED " + JSON.stringify(data));
if (data.indexOf(zm.loginScreenString) == -1) {

$scope.wizard.loginURL = $scope.wizard.fqportal;
Expand Down Expand Up @@ -241,6 +241,7 @@ angular.module('zmApp.controllers').controller('zmApp.WizardCtrl', ['$scope', '$
var u = $scope.wizard.loginURL;
var d = $q.defer();
var api1 = u+"/api" ;
var api3 = u+"/zm/api";
var c = URI.parse(u);

// lets also try without the path
Expand All @@ -253,7 +254,7 @@ angular.module('zmApp.controllers').controller('zmApp.WizardCtrl', ['$scope', '$


// lets try both /zm/api and /api. What else is there?
var apilist = [api1, api2];
var apilist = [api1, api2, api3];

findFirstReachableUrl(apilist, '/host/getVersion.json')
.then (function (success) {
Expand Down

0 comments on commit 48c686a

Please sign in to comment.