diff --git a/tools/cordova/project.js b/tools/cordova/project.js index cb6a11c710..bb2049ac01 100644 --- a/tools/cordova/project.js +++ b/tools/cordova/project.js @@ -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);