Skip to content

Commit 7721c72

Browse files
committed
fixup! support init nw package metadata in all processes
1 parent 81970bd commit 7721c72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nw_base.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Package* InitNWPackage() {
2525
const base::CommandLine& command_line =
2626
*base::CommandLine::ForCurrentProcess();
2727
std::string process_type = command_line.GetSwitchValueASCII("type");
28-
if (process_type == "renderer") {
28+
if (!process_type.empty()) {
2929
base::FilePath pkg_path = command_line.GetSwitchValuePath("nwapp-path");
3030
g_package = new Package(pkg_path);
3131
} else

0 commit comments

Comments
 (0)