Remove debug logging

This commit is contained in:
Gabe Kangas
2022-10-18 19:41:36 -07:00
parent e07268e650
commit a58d4d6997

View File

@@ -17,20 +17,17 @@ export const TitleNotifier: FC = () => {
let defaultTitle = '';
const onBlur = () => {
console.log('onBlur');
backgrounded = true;
defaultTitle = document.title;
};
const onFocus = () => {
console.log('onFocus');
backgrounded = false;
window.document.title = defaultTitle;
};
const listenForEvents = () => {
// Listen for events that should update the title
console.log('listenForEvents');
window.addEventListener('blur', onBlur);
window.addEventListener('focus', onFocus);
};