remove deprecated confirm() from onbeforeunload
This commit is contained in:
parent
efc001c01d
commit
76eb3f7e28
|
@ -571,7 +571,8 @@ window.onbeforeunload = () => {
|
|||
return;
|
||||
}
|
||||
updateLintReportIfEnabled(null, 0);
|
||||
return confirm(t('styleChangesNotSaved'));
|
||||
// neither confirm() nor custom messages work in modern browsers but just in case
|
||||
return t('styleChangesNotSaved');
|
||||
};
|
||||
|
||||
function addAppliesTo(list, name, value) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user