diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-08-13 12:22:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-13 12:22:16 +0200 |
commit | c09ecbc53eb3d3a8a1e2a1e61e20c9e5dbd4f560 (patch) | |
tree | 660f048dabcb1fac8bfc80246302d7c974118dd4 /app/javascript/mastodon/actions/app.js | |
parent | 5f63339744eecd75b1065135559ddbe688636be1 (diff) |
Add indicator of unread content to window title when web UI is out of focus (#11560)
Fix #1288
Diffstat (limited to 'app/javascript/mastodon/actions/app.js')
-rw-r--r-- | app/javascript/mastodon/actions/app.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/javascript/mastodon/actions/app.js b/app/javascript/mastodon/actions/app.js new file mode 100644 index 000000000..414968f7d --- /dev/null +++ b/app/javascript/mastodon/actions/app.js @@ -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, +}); |