mirror of
https://github.com/owncast/owncast.git
synced 2024-11-26 06:46:01 +03:00
Remove debug logging
This commit is contained in:
parent
e07268e650
commit
a58d4d6997
1 changed files with 0 additions and 3 deletions
|
@ -17,20 +17,17 @@ export const TitleNotifier: FC = () => {
|
||||||
let defaultTitle = '';
|
let defaultTitle = '';
|
||||||
|
|
||||||
const onBlur = () => {
|
const onBlur = () => {
|
||||||
console.log('onBlur');
|
|
||||||
backgrounded = true;
|
backgrounded = true;
|
||||||
defaultTitle = document.title;
|
defaultTitle = document.title;
|
||||||
};
|
};
|
||||||
|
|
||||||
const onFocus = () => {
|
const onFocus = () => {
|
||||||
console.log('onFocus');
|
|
||||||
backgrounded = false;
|
backgrounded = false;
|
||||||
window.document.title = defaultTitle;
|
window.document.title = defaultTitle;
|
||||||
};
|
};
|
||||||
|
|
||||||
const listenForEvents = () => {
|
const listenForEvents = () => {
|
||||||
// Listen for events that should update the title
|
// Listen for events that should update the title
|
||||||
console.log('listenForEvents');
|
|
||||||
window.addEventListener('blur', onBlur);
|
window.addEventListener('blur', onBlur);
|
||||||
window.addEventListener('focus', onFocus);
|
window.addEventListener('focus', onFocus);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue