remove deprecated confirm() from onbeforeunload

This commit is contained in:
tophf 2017-08-28 15:19:45 +03:00
parent efc001c01d
commit 76eb3f7e28

View File

@ -571,7 +571,8 @@ window.onbeforeunload = () => {
return; return;
} }
updateLintReportIfEnabled(null, 0); 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) { function addAppliesTo(list, name, value) {