cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [16/27] webos commit: Simplified and added improved non-webOS fallback
Date Thu, 18 Jun 2015 06:40:54 GMT
Simplified and added improved non-webOS fallback


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

Branch: refs/heads/master
Commit: f5e81ac8a791725d8003415f6ab57dbb1d9398db
Parents: 242b6c2
Author: Jason Robitaille <jason.robitaille@lge.com>
Authored: Fri Jun 5 14:45:33 2015 -0700
Committer: Jason Robitaille <jason.robitaille@lge.com>
Committed: Fri Jun 5 14:45:33 2015 -0700

----------------------------------------------------------------------
 cordova-js-src/webos/service.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-webos/blob/f5e81ac8/cordova-js-src/webos/service.js
----------------------------------------------------------------------
diff --git a/cordova-js-src/webos/service.js b/cordova-js-src/webos/service.js
index 315cb4a..d3caf70 100644
--- a/cordova-js-src/webos/service.js
+++ b/cordova-js-src/webos/service.js
@@ -53,6 +53,10 @@ function LS2Request(uri, params) {
 
 LS2Request.prototype.send = function() {
     if(!window.PalmServiceBridge) {
+        this.onFailure && this.onFailure({errorCode:-1,
+                errorText:"PalmServiceBridge not found.", returnValue: false});
+        this.onComplete && this.onComplete({errorCode:-1,
+                errorText:"PalmServiceBridge not found.", returnValue: false});
         console.error("PalmServiceBridge not found.");
         return;
     }
@@ -113,6 +117,6 @@ module.exports = {
         var req = new LS2Request(uri, params);
         return req;
     },
-    systemPrefix: ((isLegacy) ? "com.palm." : "com.webos."),
+    systemPrefix: "com.webos.",
     protocol: "luna://"
 };


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


Mime
View raw message