You are viewing a single comment's thread from:

RE: SteemWorld ~ Weekly Support ~ #31

in #steemworld6 years ago

I guess that depends on the browser and its implementation of the official Notifications API. When I open 'bob' in one tab and then open 'alice' in a second tab, I see the notifications for both accounts on Firefox (Linux). When I click on a notification for 'bob' while having 'alice' in foreground the browser automatically switches to the correct tab.

When I use only one tab and open a different account with the 'Switch Account' button, the old notifications keep staying there, because there is no way to access/remove them via Notifications API. One thing I could do is to check, if the current tab still contains the original account in the notification's click handler and automatically switch back to the account in this case.

The problem is, I don't know how exactly all the different browsers react in the click handler and if they all correctly focus the source tab. Changing the current logic would be experimental and I have many more important things on my list already, but I will see what I can do in the coming weeks.