Add indicator of unread content to window title when web UI is out of focus (#11560)
Fix #1288
This commit is contained in:
parent
5f63339744
commit
c09ecbc53e
7 changed files with 95 additions and 1 deletions
10
app/javascript/mastodon/actions/app.js
Normal file
10
app/javascript/mastodon/actions/app.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
export const APP_FOCUS = 'APP_FOCUS';
|
||||
export const APP_UNFOCUS = 'APP_UNFOCUS';
|
||||
|
||||
export const focusApp = () => ({
|
||||
type: APP_FOCUS,
|
||||
});
|
||||
|
||||
export const unfocusApp = () => ({
|
||||
type: APP_UNFOCUS,
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue