cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject spec commit: added amazon-fireos to platforms
Date Wed, 27 Nov 2013 00:57:20 GMT
Updated Branches:
  refs/heads/master 7b5ef9396 -> e1977e837


added amazon-fireos to platforms


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

Branch: refs/heads/master
Commit: e1977e8370ef91f08a55120f47a62f20c966c22f
Parents: 7b5ef93
Author: Steven Gill <stevengill97@gmail.com>
Authored: Tue Nov 26 16:57:15 2013 -0800
Committer: Steven Gill <stevengill97@gmail.com>
Committed: Tue Nov 26 16:57:15 2013 -0800

----------------------------------------------------------------------
 cordova-incl.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/e1977e83/cordova-incl.js
----------------------------------------------------------------------
diff --git a/cordova-incl.js b/cordova-incl.js
index d08ff08..bcd52dd 100644
--- a/cordova-incl.js
+++ b/cordova-incl.js
@@ -22,6 +22,7 @@
 var PLAT;
 (function getPlatform() {
     var platforms = {
+        amazon_fireos: /cordova-amazon-fireos/,
         android: /Android/,
         ios: /(iPad)|(iPhone)|(iPod)/,
         blackberry10: /(BB10)/,
@@ -52,7 +53,7 @@ if (!window._doNotWriteCordovaScript) {
 }
 
 function backHome() {
-    if (window.device && device.platform && device.platform.toLowerCase()
== 'android') {
+    if (window.device && device.platform && (device.platform.toLowerCase()
== 'android' || device.platform.toLowerCase() == 'amazon-fireos')) {
         navigator.app.backHistory();
     }
     else {


Mime
View raw message