Skip to content

Commit

Permalink
Added default value for FilePickerAcceptType.Description to fix #46
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferStrube committed Oct 5, 2023
1 parent de52e51 commit ec2957b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 138 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@
<span class="oi oi-code" aria-hidden="true"></span> InputFile Example
</NavLink>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="Status">
<span class="oi oi-warning" aria-hidden="true"></span> API Coverage Status
</NavLink>
</div>
</nav>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ enum WellKnownDirectory {
typedef (WellKnownDirectory or FileSystemHandle) StartInDirectory;
dictionary FilePickerAcceptType {
USVString description;
USVString description = """";
record<USVString, (USVString or sequence<USVString>)> accept;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class FilePickerAcceptType
{
[JsonPropertyName("description")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Description { get; set; }
public string? Description { get; set; } = "";

[JsonPropertyName("accept")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
Expand Down

0 comments on commit ec2957b

Please sign in to comment.