mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: cleanup some typos in comments (#25770)
This commit is contained in:
@@ -15,7 +15,7 @@ struct Converter<electron::NativeWindow*> {
|
||||
static bool FromV8(v8::Isolate* isolate,
|
||||
v8::Local<v8::Value> val,
|
||||
electron::NativeWindow** out) {
|
||||
// null would be tranfered to NULL.
|
||||
// null would be transferred to NULL.
|
||||
if (val->IsNull()) {
|
||||
*out = NULL;
|
||||
return true;
|
||||
|
||||
@@ -273,8 +273,8 @@ v8::Local<v8::Value> Converter<network::ResourceRequestBody>::ToV8(
|
||||
case network::mojom::DataElementType::kDataPipe: {
|
||||
upload_data.Set("type", "blob");
|
||||
// TODO(zcbenz): After the NetworkService refactor, the old blobUUID API
|
||||
// becomes unecessarily complex, we should deprecate the getBlobData API
|
||||
// and return the DataPipeHolder wrapper directly.
|
||||
// becomes unnecessarily complex, we should deprecate the getBlobData
|
||||
// API and return the DataPipeHolder wrapper directly.
|
||||
auto holder = electron::api::DataPipeHolder::Create(isolate, element);
|
||||
upload_data.Set("blobUUID", holder->id());
|
||||
// The lifetime of data pipe is bound to the uploadData object.
|
||||
|
||||
Reference in New Issue
Block a user