Skip to content

Commit

Permalink
fix(nui/core): allow sdk input callbacks only when in sdk mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nihonium-cfx committed Oct 17, 2023
1 parent 5aa4519 commit 4cc07c9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/components/nui-core/src/NUICallbacks_SDKInput.cpp
Expand Up @@ -115,7 +115,12 @@ static void ExecOrQueueOp(const QueueOp& op)
}

static InitFunction initFunction([]()
{
{
if (!launch::IsSDK() && !launch::IsSDKGuest())
{
return;
}

auto nuiApp = Instance<NUIApp>::Get();

nuiApp->AddV8Handler("initRGDInput", [](const CefV8ValueList& arguments, CefString& exception)
Expand Down

0 comments on commit 4cc07c9

Please sign in to comment.