[bugfix] name is undefined
This commit is contained in:
parent
bb01b071c5
commit
1f69b9fd9f
2
app.js
2
app.js
|
@ -13,7 +13,7 @@ function getbundleid(name){
|
||||||
var result;
|
var result;
|
||||||
for(var index = 0; index < apps.count(); index++){
|
for(var index = 0; index < apps.count(); index++){
|
||||||
var proxy = apps.objectAtIndex_(index);
|
var proxy = apps.objectAtIndex_(index);
|
||||||
if(proxy.localizedName().toString() == name){
|
if(proxy.localizedName() && proxy.localizedName().toString() == name){
|
||||||
return proxy.bundleIdentifier().toString();
|
return proxy.bundleIdentifier().toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue