Skip to content

Commit 95eed43

Browse files
committed
fix comment?
1 parent 39120ff commit 95eed43

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/PuppeteerSharp/ElementHandle.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,9 @@ public async Task UploadFileAsync(bool resolveFilePaths, params string[] filePat
189189
throw new PuppeteerException("Multiple file uploads only work with <input type=file multiple>");
190190
}
191191

192-
/**
193-
* The zero-length array is a special case, it seems that
194-
* DOM.setFileInputFiles does not actually update the files in that case, so
195-
* the solution is to eval the element value to a new FileList directly.
196-
*/
192+
// The zero-length array is a special case, it seems that
193+
// DOM.setFileInputFiles does not actually update the files in that case, so
194+
// the solution is to eval the element value to a new FileList directly.
197195
if (!filePaths.Any() || filePaths == null)
198196
{
199197
await EvaluateFunctionAsync(@"(element) => {

0 commit comments

Comments
 (0)