use new GetTaskExecutor function

Signed-off-by: liujinwei <hw.liujinwei@huawei.com>
Change-Id: Ib824bf0c6080c0856c12b8e47f795fcdae60431c
This commit is contained in:
liujinwei
2022-01-19 20:35:16 +08:00
parent 9c41b7bd8e
commit e7ef088b64
@@ -25,7 +25,7 @@ void JSContextMenu::Close(const JSCallbackInfo& args)
auto container = Container::Current();
if (container) {
auto context = container->GetPipelineContext();
auto executor = container->GetTaskExecutor();
auto executor = Container::CurrentTaskExecutor();
if (executor) {
executor->PostTask(
[context]() {