Call proper method for closing automated browser

This commit is contained in:
Manuel Thalmann 2023-07-15 20:04:25 +02:00
parent 06dd879887
commit 1d2bafeb69

View file

@ -68,7 +68,7 @@ function Start-AutomatedDownload() {
} }
$result = Move-Item $file $outDir -PassThru; $result = Move-Item $file $outDir -PassThru;
$browser.Close(); $browser.Quit();
Remove-Item -Recurse $tempDir; Remove-Item -Recurse $tempDir;
return $result; return $result;
} }