mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Properly declare platform variable.
Without this, `platform` was causing weird behavior in `meteor run <target>`.
This commit is contained in:
4
tools/cordova/project.js
vendored
4
tools/cordova/project.js
vendored
@@ -403,7 +403,7 @@ from Cordova project`, async () => {
|
||||
|
||||
const installedPlatforms = this.listInstalledPlatforms();
|
||||
|
||||
for (platform of platforms) {
|
||||
for (let platform of platforms) {
|
||||
if (_.contains(installedPlatforms, platform)) {
|
||||
continue;
|
||||
}
|
||||
@@ -411,7 +411,7 @@ from Cordova project`, async () => {
|
||||
this.addPlatform(platform);
|
||||
}
|
||||
|
||||
for (platform of installedPlatforms) {
|
||||
for (let platform of installedPlatforms) {
|
||||
if (!_.contains(platforms, platform) &&
|
||||
_.contains(CORDOVA_PLATFORMS, platform)) {
|
||||
this.removePlatform(platform);
|
||||
|
||||
Reference in New Issue
Block a user