sebelum membongkar
addEventListener('beforeunload', event => { });
Travis C
addEventListener('beforeunload', event => { });