mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Don't allow ios as a valid platform on non-darwin
This commit is contained in:
@@ -243,8 +243,10 @@ var fetchCordovaPluginFromShaUrl =
|
||||
};
|
||||
|
||||
cordova.checkIsValidPlatform = function (name) {
|
||||
if (name.match(/ios/i) && process.platform !== 'darwin')
|
||||
throw new Error(name + ': not available on your system');
|
||||
if (! _.contains(supportedPlatforms, name))
|
||||
throw new Error(name + ": no such platform");
|
||||
throw new Error(name + ': no such platform');
|
||||
};
|
||||
|
||||
cordova.checkIsValidPlugin = function (name) {
|
||||
|
||||
Reference in New Issue
Block a user