Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Use notification v1 #60

Merged
merged 7 commits into from
Mar 20, 2020
Merged

Use notification v1 #60

merged 7 commits into from
Mar 20, 2020

Conversation

ms14981
Copy link
Contributor

@ms14981 ms14981 commented Feb 27, 2020

  • useNotification now working for some versions of the v1 API.

Also:

  • Fix bug with useChildWindow where a re-launch of the child window caused a crash.
  • Fix bug with useNotification so that if a child window is open when the notification is launched, the notification is modified, not the child window.

Related to #11

…sed a crash. Fix bug with useNotification so that if a child window is open when the notification is launched, the notification is modified, not the child window. Refactor getChildWindows helper to only deal with getting the child windows, no longer in choosing the correct one. This means that it can be used for both useNotification and useChildWindow.

await Promise.all(
childWindows.map((win) =>
win.identity.name && win.identity.name === name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need this name check?

src/useNotification.ts Outdated Show resolved Hide resolved
src/useNotification.ts Outdated Show resolved Hide resolved
@oriondean oriondean merged commit 9751e4b into master Mar 20, 2020
@oriondean oriondean deleted the useNotificationV1 branch March 20, 2020 14:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants