From dcf6f7afd02bcc955beee7522000c13f94e6c445 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Sat, 6 Sep 2014 21:39:25 -0700 Subject: [PATCH] changed palm service call to be browser agnostic on webos based systems --- app/appinfo.json | 2 +- app/source/Dropbox.js | 12 ++++++------ pkg/packageinfo.json | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/appinfo.json b/app/appinfo.json index cc6ec34..23fee82 100644 --- a/app/appinfo.json +++ b/app/appinfo.json @@ -1,6 +1,6 @@ { "id": "com.monkeystew.todotxtenyo.beta", - "version": "0.4.1", + "version": "0.4.2", "vendor": "Monkeystew", "type": "web", "main": "index.html", diff --git a/app/source/Dropbox.js b/app/source/Dropbox.js index 583c806..1e33d0b 100644 --- a/app/source/Dropbox.js +++ b/app/source/Dropbox.js @@ -39,10 +39,11 @@ enyo.kind({ {content: "Please click DONE to complete the process."}, {kind:"Button", caption:"DONE", onclick:"requestAccessToken"} ]}, - {name: "launch", kind: "PalmService", + {name: "openBrowser", kind: "PalmService", service: "palm://com.palm.applicationManager", - method: "launch", onSuccess: "launchSuccess", - onFailure: "launchFailed" + method: "open", onSuccess: "launchSuccess", + onFailure: "launchFailed", + subscribe: true }, {name: "webSrv", kind: "WebService" } ], @@ -146,9 +147,8 @@ enyo.kind({ blackberry.invoke.invoke( blackberry.invoke.APP_BROWSER, args); } else { - this.$.launch.call({ - "id": "com.palm.app.browser", - "params": {"target": url} + this.$.openBrowser.call({ + "target": url }); } } diff --git a/pkg/packageinfo.json b/pkg/packageinfo.json index 7f9891e..d959974 100644 --- a/pkg/packageinfo.json +++ b/pkg/packageinfo.json @@ -3,7 +3,7 @@ "package_format_version": 2, "loc_name": "Todo.txt Enyo", "icon": "icon.png", - "version": "0.4.1", + "version": "0.4.2", "vendor": "Monkeystew", "app": "com.monkeystew.todotxtenyo.beta", "services": ["com.monkeystew.todotxtenyo.beta.service"]