mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-21 00:42:51 +08:00
Fix unsafe property access in run.js (#445)
This commit is contained in:
parent
9f33b0bb71
commit
c26082d362
2
bin/templates/cordova/lib/run.js
vendored
2
bin/templates/cordova/lib/run.js
vendored
@ -108,7 +108,7 @@ module.exports.run = function (runOptions) {
|
||||
// format than emulator.install expects.
|
||||
// TODO: Update emulator/device.install to handle this change
|
||||
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.install(resolvedTarget, buildResults);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user