Merge branch 'master' of github.com:github/atom-cef3

This commit is contained in:
Corey Johnson 2012-08-29 14:37:21 -07:00
commit 9660cf0074

View File

@ -24,11 +24,11 @@ bool AtomCefClient::OnProcessMessageReceived(CefRefPtr<CefBrowser> browser,
std::string name = message->GetName().ToString();
CefRefPtr<CefListValue> argumentList = message->GetArgumentList();
int messageId = argumentList->GetInt(0);
message->GetArgumentList()->Remove(0);
if (name == "open") {
bool hasArguments = message->GetArgumentList()->GetSize() == 1;
hasArguments ? Open(message->GetArgumentList()->GetString(0)) : Open();
bool hasArguments = message->GetArgumentList()->GetSize() > 1;
hasArguments ? Open(message->GetArgumentList()->GetString(1)) : Open();
return true;
}
if (name == "newWindow") {