From 4925b40e42e1c07318942a4a7765037a8ea15712 Mon Sep 17 00:00:00 2001 From: Jesse Rosenberger Date: Tue, 1 Aug 2017 13:49:23 +0300 Subject: [PATCH] Properly declare `platform` variable. Without this, `platform` was causing weird behavior in `meteor run `. --- tools/cordova/project.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);