Skip to content

Commit

Permalink
fix return value for isTrusted
Browse files Browse the repository at this point in the history
  • Loading branch information
Imrglop committed Jan 2, 2025
1 parent 35a4b1f commit dd9f1bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/script/JsPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ bool JsPlugin::isTrusted() {

HttpResponseMessage response = client.SendRequestAsync(request).get();
if (response.StatusCode() != HttpStatusCode::Ok) {
return "Non-ok status code";
Logger::Info("Plugin trust check request failed: {}", static_cast<int>(response.StatusCode()));
return false;
}

std::string stringResponse = to_string(response.Content().ReadAsStringAsync().get());
Expand Down

0 comments on commit dd9f1bc

Please sign in to comment.