Skip to content

Commit

Permalink
fix: return true when event handler is removed successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
tishion authored Sep 12, 2024
1 parent fb75a3f commit 5fd3546
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CefWing/CefRenderApp/RenderDelegates/CefViewClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ CefViewClient::V8Handler::ExecuteRemoveEventListener(CefRefPtr<CefV8Value> objec
listener.callback_ = arguments[1];
listener.context_ = CefV8Context::GetCurrentContext();
client_->RemoveEventListener(eventName, listener);
bRet = true;
} else
exception = "Invalid arguments; argument 2 must be a function";
} else
Expand Down

0 comments on commit 5fd3546

Please sign in to comment.