File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -93,10 +93,10 @@ async function main() {
9393 fs . writeFileSync ( jsPath , jsSource )
9494 urlToOpen += `#localProfilePath=${ jsPath } `
9595
96- // For some silly reason, the OS X open command ignores any query parameters or hash parameters
96+ // For some silly reason, the macOS ` open` and Windows `start` commands ignore hash parameters
9797 // passed as part of the URL. To get around this weird issue, we'll create a local HTML file
9898 // that just redirects.
99- if ( process . platform === 'darwin' ) {
99+ if ( process . platform === 'darwin' || process . platform === 'win32' ) {
100100 const htmlPath = path . join ( os . tmpdir ( ) , `${ filePrefix } .html` )
101101 console . log ( `Creating temp file ${ htmlPath } ` )
102102 fs . writeFileSync ( htmlPath , `<script>window.location=${ JSON . stringify ( urlToOpen ) } </script>` )
You can’t perform that action at this time.
0 commit comments