mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-11-23 15:20:34 +00:00
commit
0ec80e0f69
@ -829,6 +829,10 @@ void JsAbility::OnNewWant(const Want &want)
|
||||
|
||||
napi_value napiWant = OHOS::AppExecFwk::WrapWant(reinterpret_cast<napi_env>(&nativeEngine), want);
|
||||
NativeValue *jsWant = reinterpret_cast<NativeValue *>(napiWant);
|
||||
if (jsWant == nullptr) {
|
||||
HILOG_ERROR("Failed to get want");
|
||||
return;
|
||||
}
|
||||
|
||||
obj->SetProperty("lastRequestWant", jsWant);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user