Send notification userInfo to app.ready, on macOS.
Check if the user launched the app from a notification and send the notification args across if so.
This commit is contained in:
parent
a37544cef4
commit
af9e010162
7 changed files with 20 additions and 10 deletions
|
@ -274,8 +274,8 @@ void App::OnWillFinishLaunching() {
|
|||
Emit("will-finish-launching");
|
||||
}
|
||||
|
||||
void App::OnFinishLaunching() {
|
||||
Emit("ready");
|
||||
void App::OnFinishLaunching(const base::DictionaryValue& launch_info) {
|
||||
Emit("ready", launch_info);
|
||||
}
|
||||
|
||||
void App::OnAccessibilitySupportChanged() {
|
||||
|
|
|
@ -69,7 +69,7 @@ class App : public AtomBrowserClient::Delegate,
|
|||
void OnOpenURL(const std::string& url) override;
|
||||
void OnActivate(bool has_visible_windows) override;
|
||||
void OnWillFinishLaunching() override;
|
||||
void OnFinishLaunching() override;
|
||||
void OnFinishLaunching(const base::DictionaryValue& launch_info) override;
|
||||
void OnLogin(LoginHandler* login_handler,
|
||||
const base::DictionaryValue& request_details) override;
|
||||
void OnAccessibilitySupportChanged() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue