Skip to content

Commit

Permalink
added amazon-fireos to platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengill committed Nov 27, 2013
1 parent 7b5ef93 commit e1977e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cordova-incl.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
var PLAT;
(function getPlatform() {
var platforms = {
amazon_fireos: /cordova-amazon-fireos/,
android: /Android/,
ios: /(iPad)|(iPhone)|(iPod)/,
blackberry10: /(BB10)/,
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit e1977e8

Please sign in to comment.