fix: EventSource undefined in Renderer/Worker (#44495)
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
parent
5d5c18b7a6
commit
8f857284a4
6 changed files with 52 additions and 6 deletions
|
@ -118,8 +118,8 @@ void ElectronRendererClient::DidCreateScriptContext(
|
|||
v8::Isolate* isolate = env->isolate();
|
||||
v8::Local<v8::Object> global = renderer_context->Global();
|
||||
|
||||
std::vector<std::string> keys = {"fetch", "Response", "FormData", "Request",
|
||||
"Headers"};
|
||||
std::vector<std::string> keys = {"fetch", "Response", "FormData",
|
||||
"Request", "Headers", "EventSource"};
|
||||
for (const auto& key : keys) {
|
||||
v8::MaybeLocal<v8::Value> value =
|
||||
global->Get(renderer_context, gin::StringToV8(isolate, key));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue