cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject cordova-paramedic git commit: Allow unknown platforms, assume localhost will receive a result
Date Sun, 06 Mar 2016 07:57:15 GMT
Repository: cordova-paramedic
Updated Branches:
  refs/heads/master 940ab3517 -> 8615f31c9


Allow unknown platforms, assume localhost will receive a result


Project: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/commit/8615f31c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/tree/8615f31c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/diff/8615f31c

Branch: refs/heads/master
Commit: 8615f31c9bca2f152a409d38a48c5c9587abf67d
Parents: 940ab35
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Sat Mar 5 23:56:52 2016 -0800
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Sat Mar 5 23:56:52 2016 -0800

----------------------------------------------------------------------
 paramedic.js | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/8615f31c/paramedic.js
----------------------------------------------------------------------
diff --git a/paramedic.js b/paramedic.js
index 357a33b..f811984 100644
--- a/paramedic.js
+++ b/paramedic.js
@@ -139,12 +139,7 @@ ParamedicRunner.prototype = {
         server.listen(this.port, '127.0.0.1',function onServerConnect() {
 
             switch(self.platformId) {
-                case "ios"     :  // intentional fallthrough
-                case "browser" :
-                case "windows" :
-                    self.writeMedicLogUrl("http://127.0.0.1:" + self.port);
-                    self.addAndRunPlatform();
-                    break;
+
                 case "android" :
                     self.writeMedicLogUrl("http://10.0.2.2:" + self.port);
                     self.addAndRunPlatform();
@@ -165,9 +160,12 @@ ParamedicRunner.prototype = {
                         }
                     });
                     break;
+                case "ios"     :  // intentional fallthrough
+                case "browser" :
+                case "windows" :
                 default :
-                    self.logMessage("platform is not supported :: " + self.platformId);
-                    self.cleanUpAndExitWithCode(1);
+                    self.writeMedicLogUrl("http://127.0.0.1:" + self.port);
+                    self.addAndRunPlatform();
                     break;
             }
         });


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message