From 76eb3f7e28aa136c1bfc81602a7e286deac7cdb8 Mon Sep 17 00:00:00 2001 From: tophf Date: Mon, 28 Aug 2017 15:19:45 +0300 Subject: [PATCH] remove deprecated confirm() from onbeforeunload --- edit/edit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/edit/edit.js b/edit/edit.js index 3152c5dd..984d56e7 100644 --- a/edit/edit.js +++ b/edit/edit.js @@ -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) {