Merge remote-tracking branch 'Blu3train/DevtoolsHeadlessModeFix'

This commit is contained in:
Chenx221 2024-09-05 12:26:31 +08:00
commit 44b897f978

View File

@ -40,7 +40,7 @@ namespace
chromePath,
std::filesystem::current_path().wstring()
);
args += headless ? L" --window-size=1920,1080 --headless" : L" --window-size=850,900";
args += headless ? L" --window-size=1920,1080 --headless=new" : L" --window-size=850,900";
DWORD exitCode = 0;
STARTUPINFOW DUMMY = { sizeof(DUMMY) };
PROCESS_INFORMATION processInfo = {};