File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ const {
3838 setClickOptions,
3939} = require ( './config' ) ;
4040const fs = require ( 'fs-extra' ) ;
41- const os = require ( 'os' ) ;
4241const path = require ( 'path' ) ;
4342const childProcess = require ( 'child_process' ) ;
4443const crypto = require ( 'crypto' ) ;
@@ -308,7 +307,7 @@ const _closeBrowser = async () => {
308307 await _client . removeAllListeners ( ) ;
309308 pageHandler . addJavascriptDialogOpeningListener ( ) ;
310309 //TODO: Remove check once fixed https://bugs.chromium.org/p/chromium/issues/detail?id=1147809
311- if ( ! defaultConfig . firefox && ! ( os . type ( ) . includes ( 'Windows' ) && defaultConfig . headful ) ) {
310+ if ( ! defaultConfig . firefox && ! ( process . platform == 'win32' && defaultConfig . headful ) ) {
312311 await page . close ( ) ;
313312
314313 await new Promise ( ( resolve ) => {
You can’t perform that action at this time.
0 commit comments