Skip to content

Commit 5644fe3

Browse files
committed
[WIN] fix local pdf case
1 parent 6813124 commit 5644fe3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/nw_base.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ void SetExitCode(int code) {
3939
}
4040

4141
int ExitCodeHook() {
42+
const base::CommandLine* cmdline = base::CommandLine::ForCurrentProcess();
43+
if (cmdline->HasSwitch("nwjs-test-mode"))
44+
return 0;
4245
return exit_code;
4346
}
4447

test/data/platform_apps/local_pdf/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
"webkit": {
1515
"plugins": true
1616
},
17-
"chromium-args": "--enable-logging --v=1",
1817
"webview": {
1918
"partitions": [
2019
{

0 commit comments

Comments
 (0)