blob: 3783dd706711209479f3ea1f60c8b8aae3f24335 (
plain)
1
2
3
4
5
6
7
8
9
|
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
window.addEventListener('beforeunload', function(event) {
// Since leaving the page discards the accumulated logs, show a confirmation
// dialog when the user attempts to leave.
event.returnValue = '';
});
|