mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-24 13:28:59 +01:00
Lint
This commit is contained in:
parent
cca9d6e22d
commit
d364aa0a3c
@ -604,11 +604,11 @@ headerBar.addEventListener("click", (e) => {
|
||||
// Add a confirmation dialog when leaving the page
|
||||
// Useful to avoid data loss
|
||||
//------------------------------------------------
|
||||
window.addEventListener('beforeunload', function (event) {
|
||||
window.addEventListener("beforeunload", function (event) {
|
||||
// Cancel the event
|
||||
event.preventDefault();
|
||||
// Chrome requires returnValue to be set
|
||||
event.returnValue = '';
|
||||
event.returnValue = "";
|
||||
});
|
||||
|
||||
moveToChatTab();
|
||||
|
Loading…
Reference in New Issue
Block a user