Skip to content

Commit 5307978

Browse files
committed
fixup! Fix string conversions
1 parent afd2f25 commit 5307978

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/api/nw_app_api.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,11 @@ bool NwAppSetProxyConfigFunction::RunNWSync(base::ListValue* response, std::stri
265265
}
266266

267267
bool NwAppGetDataPathFunction::RunNWSync(base::ListValue* response, std::string* error) {
268+
#if defined(OS_WIN)
268269
response->AppendString(base::WideToUTF16(browser_context()->GetPath().value()));
270+
#else
271+
response->AppendString(browser_context()->GetPath().value());
272+
#endif
269273
return true;
270274
}
271275

0 commit comments

Comments
 (0)