mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-23 01:19:38 +08:00
Fix unsafe property access
This commit is contained in:
parent
8fb49ec7ec
commit
1a8154c90e
2
bin/templates/cordova/lib/run.js
vendored
2
bin/templates/cordova/lib/run.js
vendored
@ -106,7 +106,7 @@ module.exports.run = function (runOptions) {
|
|||||||
// format than emulator.install expects.
|
// format than emulator.install expects.
|
||||||
// TODO: Update emulator/device.install to handle this change
|
// TODO: Update emulator/device.install to handle this change
|
||||||
return build.run.call(self, runOptions, resolvedTarget).then(function (buildResults) {
|
return build.run.call(self, runOptions, resolvedTarget).then(function (buildResults) {
|
||||||
if (resolvedTarget.isEmulator) {
|
if (resolvedTarget && resolvedTarget.isEmulator) {
|
||||||
return emulator.wait_for_boot(resolvedTarget.target).then(function () {
|
return emulator.wait_for_boot(resolvedTarget.target).then(function () {
|
||||||
return emulator.install(resolvedTarget, buildResults);
|
return emulator.install(resolvedTarget, buildResults);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user