Commit 2b34d552 authored by Tasso Evangelista's avatar Tasso Evangelista Committed by Guilherme Gazzo

Remove visibility listener on unload page (#197)

parent 5052360a
......@@ -135,6 +135,9 @@ export class App extends Component {
visibility.addListener(this.handleVisibilityChange);
this.handleVisibilityChange();
window.addEventListener('beforeunload', () => {
visibility.removeListener(this.handleVisibilityChange);
});
const configLanguage = () => {
const { config: { settings: { language } = {} } = {} } = this.props;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment