From 4a3488f925aeda6a878b151243c6405483a72fb7 Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Thu, 5 May 2016 16:53:15 -0400 Subject: #234 - fixed indexOf bug Former-commit-id: ac0de9095a8479dc292a0115804ccb3aae9e3e0c --- www/js/WizardCtrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'www/js/WizardCtrl.js') diff --git a/www/js/WizardCtrl.js b/www/js/WizardCtrl.js index dd06fa91..c09270db 100644 --- a/www/js/WizardCtrl.js +++ b/www/js/WizardCtrl.js @@ -140,7 +140,7 @@ angular.module('zmApp.controllers').controller('zmApp.WizardCtrl', ['$scope', '$ function stripProto(u) { - if (u.indexOf('://')) + if (u.indexOf('://')!=-1) return u.substr(u.indexOf('://')+3); else return u; -- cgit v1.2.3