Skip to content

Commit

Permalink
Taking care of dashes in amazon-fireos platform name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Archana Naik committed Aug 14, 2014
1 parent fbf8f28 commit 6e1e3d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cordova-lib/src/cordova/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ function add(hooks, projectRoot, targets, opts) {
// Package names for Cordova platforms look like "cordova-ios".
var nameParts = pkg.name.split('-');
var name = nameParts[1];
if (name == 'amazon') {
name = 'amazon-fireos';
}
if( !platforms[name] ) {
throw new CordovaError(msg);
}
Expand Down

0 comments on commit 6e1e3d9

Please sign in to comment.