mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-13 08:44:12 +03:00
Merge branch 'master' of github.com:github/atom-cef3
This commit is contained in:
commit
9660cf0074
@ -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") {
|
||||
|
Loading…
Reference in New Issue
Block a user