Skip to content
Permalink
Browse files
added amazon-fireos to platforms
  • Loading branch information
stevengill committed Nov 27, 2013
1 parent 7b5ef93 commit e1977e8370ef91f08a55120f47a62f20c966c22f
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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 {

0 comments on commit e1977e8

Please sign in to comment.