Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Create function to open popup but not listen #1903

Open
ianb opened this issue Aug 10, 2020 · 0 comments
Open

Create function to open popup but not listen #1903

ianb opened this issue Aug 10, 2020 · 0 comments

Comments

@ianb
Copy link
Contributor

ianb commented Aug 10, 2020

Right now openPopup() opens the popup and triggers the normal flow. But sometimes we want to do something more specific, like show a timer or a reminder. Typically the pattern is: (a) try to send a message in case the popup is already open, (b) if that fails, then open the popup, (c) try to send a message to the popup again

So there could be a function like openPopupWithMessage({...}) that would go through this. It could also open popup.html?nolisten which could stop the popup from initiating the standard listening. In that case the popup could send a message like "popupReady" which tells the function that it can send its message.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant